use configure-time headers checks instead of compiler ones

SVN revision: 55970
This commit is contained in:
Vincent Torri 2011-01-07 06:48:33 +00:00
parent f792b1eec5
commit fe85acc06d
3 changed files with 14 additions and 4 deletions

View File

@ -3,9 +3,11 @@
#ifdef BUILD_ASYNC_EVENTS #ifdef BUILD_ASYNC_EVENTS
#ifndef _MSC_VER
#ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>

View File

@ -14,8 +14,12 @@
/* get the casefold feature! */ /* get the casefold feature! */
#include <fnmatch.h> #include <fnmatch.h>
#include <dirent.h> #include <dirent.h>
#ifndef _MSC_VER
#ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif
#ifndef HAVE_SYS_PARAM_H
# include <sys/param.h> # include <sys/param.h>
#endif #endif

View File

@ -241,8 +241,12 @@ void *alloca (size_t);
#include <sys/stat.h> #include <sys/stat.h>
#include <time.h> #include <time.h>
#include <ctype.h> #include <ctype.h>
#ifndef _MSC_VER
# include <stdint.h> #ifdef HAVE_STDINT_H
# include <unistd.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif #endif