FreeBSD Bugzilla – Attachment 217668 Details for
Bug 249029
net-mgmt/pmacct fix build with SQLITE3 option and with -fno-common
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix the build
pmacct-sql.patch (text/plain), 1.44 KB, created by
Olivier Cochard
on 2020-08-31 12:22:17 UTC
(
hide
)
Description:
patch to fix the build
Filename:
MIME Type:
Creator:
Olivier Cochard
Created:
2020-08-31 12:22:17 UTC
Size:
1.44 KB
patch
obsolete
>Index: net-mgmt/pmacct/files/patch-src_sql__common.c >=================================================================== >--- net-mgmt/pmacct/files/patch-src_sql__common.c (revision 547165) >+++ net-mgmt/pmacct/files/patch-src_sql__common.c (working copy) >@@ -1,6 +1,27 @@ > --- src/sql_common.c.orig 2020-05-10 13:57:54 UTC > +++ src/sql_common.c >-@@ -126,8 +126,8 @@ void sql_init_global_buffers() >+@@ -45,8 +45,8 @@ unsigned char *pipebuf; >+ struct db_cache *sql_cache; >+ struct db_cache **sql_queries_queue, **sql_pending_queries_queue; >+ struct db_cache *collision_queue; >+-int cq_ptr, qq_ptr, qq_size, pp_size, pb_size, pn_size, pm_size, pt_size; >+-int pc_size, dbc_size, cq_size, pqq_ptr; >++int cq_ptr, qq_size; >++int cq_size; >+ struct db_cache lru_head, *lru_tail; >+ struct frags where[N_PRIMITIVES+2]; >+ struct frags values[N_PRIMITIVES+2]; >+@@ -60,8 +60,7 @@ time_t glob_committed_basetime; /* last resort for sig >+ int glob_dyn_table, glob_dyn_table_time_only; /* last resort for signal handling */ >+ int glob_timeslot; /* last resort for sql handlers */ >+ >+-struct sqlfunc_cb_registry sqlfunc_cbr; >+-void (*insert_func)(struct primitives_ptrs *, struct insert_data *); >++struct sqlfunc_cb_registry sqlfunc_cbr; >+ struct DBdesc p; >+ struct DBdesc b; >+ struct BE_descs bed; >+@@ -126,8 +125,8 @@ void sql_init_global_buffers() > lru_tail = &lru_head; > > Log(LOG_INFO, "INFO ( %s/%s ): cache entries=%d base cache memory=%luu bytes\n", config.name, config.type,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 249029
: 217668