add sys/types.h check
authorcaro <caro>
Sun, 18 Sep 2011 10:13:29 +0000 (10:13 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 18 Sep 2011 10:13:29 +0000 (10:13 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@63455 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
src/lib/eina_main.c

index b3262d7..0702be8 100644 (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"
index f7d2559..fe9f8bc 100644 (file)
 #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