summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/iptables_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/iptables_common.h b/include/iptables_common.h
index 64723c3c..e214d1fd 100644
--- a/include/iptables_common.h
+++ b/include/iptables_common.h
@@ -33,8 +33,10 @@ void exit_error(enum exittype, char *, ...)__attribute__((noreturn,
extern const char *program_name, *program_version;
extern char *lib_dir;
+#define _init __attribute__((constructor)) my_init
#ifdef NO_SHARED_LIBS
# ifdef _INIT
+# undef _init
# define _init _INIT
# endif
extern void init_extensions(void);