diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-02-15 19:48:07 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-02-15 19:48:07 +0000 |
commit | bfa9a72d5e70e81543169ab48adb8121f053665b (patch) | |
tree | 120bdb1d570898f1e5cd109ec271f126ec7327a4 /configure.in | |
parent | e6dcb17ba4e1c6f518a53d68dfb2bae0654a2dde (diff) | |
download | tor-bfa9a72d5e70e81543169ab48adb8121f053665b.tar.gz tor-bfa9a72d5e70e81543169ab48adb8121f053665b.zip |
More fixes for IRIX compilation: make very sure we have NULL in configure.in. This may work now.
svn:r3627
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.in b/configure.in index efd14b7a25..0ecab905ef 100644 --- a/configure.in +++ b/configure.in @@ -149,7 +149,7 @@ AC_CHECK_HEADERS(zlib.h, , AC_MSG_ERROR(Zlib header (zlib.h) not found. Tor requ 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 pthread.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 pthread.h stddef.h) AC_CHECK_FUNCS(gettimeofday ftime socketpair uname inet_aton strptime getrlimit setrlimit strlcat strlcpy strtoull getpwnam ftello pthread_create gethostbyname_r getaddrinfo) AC_FUNC_FSEEKO @@ -206,6 +206,10 @@ AC_CACHE_CHECK([whether memset(0) sets pointers to NULL], tor_cv_null_is_zero, [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], |