add sys/types.h check

SVN revision: 63455
This commit is contained in:
Vincent Torri 2011-09-18 10:13:29 +00:00
parent d2bc8ef3a5
commit 2b7649e676
2 changed files with 4 additions and 2 deletions

View File

@ -358,7 +358,7 @@ AC_HEADER_ASSERT
AC_HEADER_DIRENT
AC_HEADER_TIME
EFL_CHECK_PATH_MAX
AC_CHECK_HEADERS([unistd.h libgen.h inttypes.h stdint.h])
AC_CHECK_HEADERS([unistd.h libgen.h inttypes.h stdint.h sys/types.h])
if test "x${ac_cv_header_inttypes_h}" = "xyes" ; then
EINA_CONFIGURE_HAVE_INTTYPES_H="#define EINA_HAVE_INTTYPES_H"

View File

@ -29,8 +29,10 @@
#endif
#ifdef EFL_HAVE_THREADS
# if !(defined(_WIN32_WCE)) && !(defined(_WIN32))
# ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
# endif
# ifdef HAVE_UNISTD_H
# include <unistd.h>
# endif
#endif