[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] More fixes for IRIX compilation: make very sure we have NUL...



Update of /home/or/cvsroot/tor
In directory moria.mit.edu:/tmp/cvs-serv5455

Modified Files:
      Tag: tor-0_0_9-patches
	configure.in 
Log Message:
More fixes for IRIX compilation: make very sure we have NULL in configure.in. This may work now. (backport)

Index: configure.in
===================================================================
RCS file: /home/or/cvsroot/tor/configure.in,v
retrieving revision 1.156.2.5
retrieving revision 1.156.2.6
diff -u -d -r1.156.2.5 -r1.156.2.6
--- configure.in	15 Feb 2005 00:54:28 -0000	1.156.2.5
+++ configure.in	15 Feb 2005 19:48:09 -0000	1.156.2.6
@@ -143,7 +143,7 @@
 
 dnl These headers are not essential
 
-AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h)
+AC_CHECK_HEADERS(stdint.h sys/types.h inttypes.h sys/param.h sys/wait.h sys/limits.h netinet/in.h arpa/inet.h machine/limits.h syslog.h sys/time.h sys/resource.h stddef.h)
 
 AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit setrlimit strlcat strlcpy strtoull getpwnam ftello)
 AC_FUNC_FSEEKO
@@ -200,6 +200,10 @@
 [AC_RUN_IFELSE([AC_LANG_SOURCE(
 [[#include <stdlib.h>
 #include <string.h>
+#include <stdio.h>
+#ifdef HAVE_STDDEF_H
+#include <stddef.h>
+#endif
 int main () { char *p1,*p2; p1=NULL; memset(&p2,0,sizeof(p2));
 return memcmp(&p1,&p2,sizeof(char*))?1:0; }]])],
        [tor_cv_null_is_zero=yes],