On Thursday 2012-05-31 15:31, Florian Westphal wrote: >> > >> > CC parse.o >> > parse.c: In function 'msg2ct': >> > parse.c:258:34: error: 'NULL' undeclared (first use in this function) >> > parse.c:258:34: note: each undeclared identifier is reported only once for each function it appears in >> > parse.c: In function 'msg2exp': >> > parse.c:438:16: error: 'NULL' undeclared (first use in this function) >> >> Similar patch was already applied. >> >> http://git.netfilter.org/cgi-bin/gitweb.cgi?p=conntrack-tools.git;a=commit;h=d44489648c1a56d543a84bbebe455227bb25cf34 > >NULL is defined in stddef.h, stdlib.h does not necessarily pull that >header in, too. I believe that the C standard defines that NULL has to become available through (at least) stdio.h. Though wikipedia may not always be authoritative, I will use it as an excuse now: http://en.wikipedia.org/wiki/Stdio.h So if #include <stddef.h> makes NULL available, good for glibc, but it may not satisfy certain implementations. -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html