diff --git a/legacy/eet/configure.ac b/legacy/eet/configure.ac index 653100661f..95eb99d199 100644 --- a/legacy/eet/configure.ac +++ b/legacy/eet/configure.ac @@ -352,7 +352,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..8c892d8241 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_NETINET_IN_H # include diff --git a/legacy/eet/src/lib/eet_lib.c b/legacy/eet/src/lib/eet_lib.c index d67c5e8da1..cd1019c766 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_NETINET_IN_H # include