Skip to content

Commit

Permalink
Make compat explicit_bzero() available for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelortmann committed Nov 22, 2020
1 parent f6a4f41 commit 48e6ff1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/mod/module.h
Expand Up @@ -510,6 +510,9 @@
#define make_rand_str_from_chars ((void (*) (char *, int, char *))global[308])
#define add_tcl_objcommands ((void (*) (tcl_cmds *))global[309])
#define pid_file ((char *)(global[310]))
#ifndef HAVE_EXPLICIT_BZERO
# define explicit_bzero ((void (*) (void *const, const size_t))global[311])
#endif


/* hostmasking */
Expand Down
7 changes: 6 additions & 1 deletion src/modules.c
Expand Up @@ -611,7 +611,12 @@ Function global_table[] = {
/* 308 - 311 */
(Function) make_rand_str_from_chars,
(Function) add_tcl_objcommands,
(Function) pid_file /* char */
(Function) pid_file, /* char */
#ifndef HAVE_EXPLICIT_BZERO
(Function) explicit_bzero
#else
(Function) 0
#endif
};

void init_modules(void)
Expand Down

0 comments on commit 48e6ff1

Please sign in to comment.