Author: jpeach Date: 2007-12-20 16:35:42 +0000 (Thu, 20 Dec 2007) New Revision: 26551
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=26551 Log: Make sure NULL is defined before using it to test for getifaddrs(). Patch from Timur I. Bakeyev <[EMAIL PROTECTED]>. Modified: branches/SAMBA_4_0/source/lib/replace/getifaddrs.m4 Changeset: Modified: branches/SAMBA_4_0/source/lib/replace/getifaddrs.m4 =================================================================== --- branches/SAMBA_4_0/source/lib/replace/getifaddrs.m4 2007-12-20 15:59:39 UTC (rev 26550) +++ branches/SAMBA_4_0/source/lib/replace/getifaddrs.m4 2007-12-20 16:35:42 UTC (rev 26551) @@ -11,6 +11,10 @@ AC_TRY_COMPILE([ #include <sys/socket.h> #include <sys/types.h> +#if STDC_HEADERS +#include <stdlib.h> +#include <stddef.h> +#endif #include <netinet/in.h> #include <arpa/inet.h> #include <ifaddrs.h>
