Fix check for NULL representation to include string.h; this makes fixes building on Irix, I hope.

svn:r3625
This commit is contained in:
Nick Mathewson 2005-02-15 00:40:36 +00:00
parent ecf7bb5ff4
commit e6dcb17ba4
1 changed files with 1 additions and 0 deletions

View File

@ -205,6 +205,7 @@ fi
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>
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],