X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=iptables.h;h=efd7cf38c32c7c210173631f1c7acb9ad042ad15;hb=19acf041bfdb479e68d53699cc8940d21d76434b;hp=bcd302d841d145208254e933d1ae062a0948c3bb;hpb=dd013720b42d6df91176dc9e87f815dcd5d69519;p=project%2Ffirewall3.git diff --git a/iptables.h b/iptables.h index bcd302d..efd7cf3 100644 --- a/iptables.h +++ b/iptables.h @@ -42,10 +42,16 @@ # error "Unsupported xtables version" #endif +#ifndef DISABLE_STATIC_EXTENSIONS /* libipt*ext.so interfaces */ extern void init_extensions(void); extern void init_extensions4(void); extern void init_extensions6(void); +#else +static inline void init_extensions(void) { } +static inline void init_extensions4(void) { } +static inline void init_extensions6(void) { } +#endif /* Required by certain extensions like SNAT and DNAT */ extern int kernel_version;