iptables/extensions/libipt_time.c missing include
Hi,
Tell me if I'm wrong, it seems an include is missing in extensions/libipt_time.c from iptables cvs. (line 302 : offsetof)
--- extensions/libipt_time.c.ancien 2004-01-23 02:59:59.000000000
+0100
+++ extensions/libipt_time.c 2004-01-23 02:54:17.000000000 +0100
@@ -3,6 +3,7 @@
#include <netdb.h>
#include <string.h>
#include <stdlib.h>
+#include <linux/stddef.h>
#include <getopt.h>
#include <iptables.h>
Signature · 1 line
Laurent
Quoted 3 lines · On Fri, Jan 23, 2004 at 03:06:45AM +0100, [email protected] wrote:
Tell me if I'm wrong, it seems an include is missing in
extensions/libipt_time.cfrom iptables cvs. (line 302 : offsetof)
You should use <stddef.h> instead of <linux/stddef.h>.
Bastian
Signature · 3 lines
"... freedom ... is a worship word..." "It is our worship word too." -- Cloud William and Kirk, "The Omega Glory", stardate unknown
Quoted 6 lines · Bastian Blank
Quoted 3 lines · On Fri, Jan 23, 2004 at 03:06:45AM +0100, [email protected] wrote:
Tell me if I'm wrong, it seems an include is missing in
extensions/libipt_time.cfrom iptables cvs. (line 302 : offsetof)You should use <
stddef.h> instead of <linux/stddef.h>.
At least on my debian machines /usr/include/stddef.h doesn't exist.
Thus, I'm accepting the patch.
Quoted 1 line
Bastian
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie
Quoted 2 lines · Harald Welte
Quoted 1 line
You should use <
stddef.h> instead of <linux/stddef.h>.At least on my debian machines
/usr/include/stddef.hdoesn't exist.
It don't exists there, because it is shipped with the gcc.
Bastian
Signature · 1 line
Phasers locked on target, Captain.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines · Henrik Nordstrom
Quoted 1 line
At least on my debian machines
/usr/include/stddef.hdoesn't exist.There should be one in your gcc include directory. It is a compiler dependent include, not a system dependent one.
stupid me, thanks.
Quoted 2 lines
Regards
Henrik
Signature · 5 lines
- Harald Welte <[email protected]> http://www.netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie
Quoted 11 lines · Harald Welte
Quoted 6 lines · Bastian Blank
Quoted 3 lines · On Fri, Jan 23, 2004 at 03:06:45AM +0100, [email protected] wrote:
Tell me if I'm wrong, it seems an include is missing in
extensions/libipt_time.cfrom iptables cvs. (line 302 : offsetof)You should use <
stddef.h> instead of <linux/stddef.h>.At least on my debian machines
/usr/include/stddef.hdoesn't exist.Thus, I'm accepting the patch.
On my debian machine stddef.h is in /usr/lib/gcc-lib/i486-linux/3.3.3/include/ and gcc can find it with <stddef.h> when compiling normally. Not sure
about when compiling a kernel.
Stephen