From 6842343e3f303f9bb2a45ca6e0881425c0d2a02c Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Sun, 15 May 2011 11:21:20 +0000 Subject: [PATCH] use haeders check to include unistd.h SVN revision: 59401 --- legacy/eet/configure.ac | 2 +- legacy/eet/src/lib/eet_cipher.c | 4 ++-- legacy/eet/src/lib/eet_lib.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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