From f82070f9871d281c2802c1624dcf222886b5fb50 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 20 Jan 2008 13:14:00 +0000 Subject: Converts the iptables build infrastructure to autotools. - Can build both static and dynamic at the same time - iptables-static will be a multi-binary, semi-static (link against libc but w/o dynamic plugins) - Always build IPv6 modules - consider INSTALL Signed-off-by: Jan Engelhardt --- include/xtables.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'include/xtables.h') diff --git a/include/xtables.h b/include/xtables.h index f81daad6..577b3c6a 100644 --- a/include/xtables.h +++ b/include/xtables.h @@ -226,13 +226,14 @@ void exit_error(enum exittype, const char *, ...)__attribute__((noreturn, format(printf,2,3))); extern const char *program_name, *program_version; -#define _init __attribute__((constructor)) my_init #ifdef NO_SHARED_LIBS -# ifdef _INIT -# undef _init -# define _init _INIT -# endif - extern void init_extensions(void); +# ifdef _INIT +# undef _init +# define _init _INIT +# endif + extern void init_extensions(void); +#else +# define _init __attribute__((constructor)) _INIT #endif #endif /* _XTABLES_H */ -- cgit v1.2.3