use haeders check to include unistd.h

SVN revision: 59401
This commit is contained in:
Vincent Torri 2011-05-15 11:21:20 +00:00
parent d809170ea9
commit 6842343e3f
3 changed files with 5 additions and 5 deletions

View File

@ -341,7 +341,7 @@ AC_CHECK_HEADER([jpeglib.h],
[dummy="yes"], [dummy="yes"],
[AC_MSG_ERROR("Cannot find jpeglib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file")]) [AC_MSG_ERROR("Cannot find jpeglib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file")])
AC_CHECK_HEADERS(netinet/in.h) AC_CHECK_HEADERS(netinet/in.h unistd.h)
EFL_CHECK_PATH_MAX EFL_CHECK_PATH_MAX
### Checks for types ### Checks for types

View File

@ -25,9 +25,9 @@ void * alloca (size_t);
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/mman.h> #include <sys/mman.h>
#ifndef _MSC_VER #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif /* ifndef _MSC_VER */ #endif /* ifdef HAVE_UNISTD_H */
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
# include <netinet/in.h> # include <netinet/in.h>

View File

@ -34,9 +34,9 @@ void * alloca (size_t);
#include <fcntl.h> #include <fcntl.h>
#include <zlib.h> #include <zlib.h>
#ifndef _MSC_VER #ifdef HAVE_UNISTD_H
# include <unistd.h> # include <unistd.h>
#endif /* ifndef _MSC_VER */ #endif /* ifdef HAVE_UNISTD_H */
#ifdef HAVE_NETINET_IN_H #ifdef HAVE_NETINET_IN_H
# include <netinet/in.h> # include <netinet/in.h>