diff options
author | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2008-01-20 13:14:00 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net> | 2008-01-20 13:14:00 +0000 |
commit | 0d0ef5c79805e6a7dc95f82c1cb67be09422b9ed (patch) | |
tree | c0e633b0867a4caab39d55b74f8521ecac724520 /include | |
parent | 706bfe7a140f8f90b08f20682a465127337fd5d1 (diff) |
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 <jengelh@computergmbh.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/xtables.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/xtables.h b/include/xtables.h index f81daad..577b3c6 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 */ |