diff --git a/legacy/eet/configure.ac b/legacy/eet/configure.ac index 465d033b02..fbe8635a5f 100644 --- a/legacy/eet/configure.ac +++ b/legacy/eet/configure.ac @@ -341,7 +341,7 @@ AC_CHECK_HEADER([jpeglib.h], [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_CHECK_HEADERS(netinet/in.h) +AC_CHECK_HEADERS(netinet/in.h unistd.h) EFL_CHECK_PATH_MAX ### Checks for types diff --git a/legacy/eet/src/lib/eet_cipher.c b/legacy/eet/src/lib/eet_cipher.c index 6eff8de466..231734d1a3 100644 --- a/legacy/eet/src/lib/eet_cipher.c +++ b/legacy/eet/src/lib/eet_cipher.c @@ -25,9 +25,9 @@ void * alloca (size_t); #include #include -#ifndef _MSC_VER +#ifdef HAVE_UNISTD_H # include -#endif /* ifndef _MSC_VER */ +#endif /* ifdef HAVE_UNISTD_H */ #ifdef HAVE_NETINET_IN_H # include diff --git a/legacy/eet/src/lib/eet_lib.c b/legacy/eet/src/lib/eet_lib.c index 7206ed9632..2050eb64b3 100644 --- a/legacy/eet/src/lib/eet_lib.c +++ b/legacy/eet/src/lib/eet_lib.c @@ -34,9 +34,9 @@ void * alloca (size_t); #include #include -#ifndef _MSC_VER +#ifdef HAVE_UNISTD_H # include -#endif /* ifndef _MSC_VER */ +#endif /* ifdef HAVE_UNISTD_H */ #ifdef HAVE_NETINET_IN_H # include