* Check for <unistd.h>, too. MSVC doesn't have it.

This commit is contained in:
Sam Hocevar
2007-02-01 16:08:33 +00:00
committed by sam
parent 4c58925d80
commit 4ee57fba0a
8 changed files with 20 additions and 8 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ esac
AC_SUBST(WINSOCK2_LIBS)
AC_SUBST(DLL_LDFLAGS)
AC_CHECK_HEADERS(windows.h winsock2.h io.h inttypes.h stdint.h getopt.h libc.h malloc.h dlfcn.h regex.h sys/socket.h sys/uio.h aio.h sys/mman.h sys/wait.h sys/resource.h sys/time.h)
AC_CHECK_HEADERS(windows.h winsock2.h io.h unistd.h inttypes.h stdint.h getopt.h libc.h malloc.h dlfcn.h regex.h sys/socket.h sys/uio.h aio.h sys/mman.h sys/wait.h sys/resource.h sys/time.h)
AC_CHECK_FUNCS(setenv waitpid setrlimit gettimeofday fork kill pipe _pipe)
AC_CHECK_FUNCS(open64 lseek64 mmap64 fopen64 fseeko _IO_getc getline getdelim __getdelim fgetln __srefill map_fd memalign posix_memalign aio_read accept socket readv pread recv recvfrom recvmsg mmap valloc sigaction)
+3 -1
View File
@@ -27,7 +27,9 @@
# include <inttypes.h>
#endif
#include <stdio.h>
#include <unistd.h>
#if defined HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <errno.h>
#include <stdarg.h>
+3 -1
View File
@@ -45,7 +45,9 @@
#if defined HAVE_SYS_UIO_H
# include <sys/uio.h>
#endif
#include <unistd.h>
#if defined HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <fcntl.h>
#include <stdarg.h>
#if defined HAVE_AIO_H
+3 -1
View File
@@ -40,7 +40,9 @@
#if defined HAVE_MALLOC_H
# include <malloc.h>
#endif
#include <unistd.h>
#if defined HAVE_UNISTD_H
# include <unistd.h>
#endif
#if defined HAVE_SYS_MMAN_H
# include <sys/mman.h>
#endif
+1 -1
View File
@@ -29,7 +29,7 @@
#include <stdio.h>
#include <sys/types.h>
#if defined HAVE___SREFILL
#if defined HAVE___SREFILL && defined HAVE_UNISTD_H
# include <unistd.h> /* Needed for __srefills lseek() call */
#endif
+3 -1
View File
@@ -29,7 +29,9 @@
#endif
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#if defined HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
+3 -1
View File
@@ -28,7 +28,9 @@
#endif
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#if defined HAVE_UNISTD_H
# include <unistd.h>
#endif
#if defined HAVE_REGEX_H
# include <regex.h>
#endif
+3 -1
View File
@@ -19,7 +19,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#if defined HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>