From d9c4ba20f451f576c23d6e3a9738ea3ce26af024 Mon Sep 17 00:00:00 2001 From: caro Date: Sun, 15 May 2011 11:21:20 +0000 Subject: [PATCH] use haeders check to include unistd.h git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@59401 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- configure.ac | 2 +- src/lib/eet_cipher.c | 4 ++-- src/lib/eet_lib.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac index 465d033..fbe8635 100644 --- a/configure.ac +++ b/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/src/lib/eet_cipher.c b/src/lib/eet_cipher.c index 6eff8de..231734d 100644 --- a/src/lib/eet_cipher.c +++ b/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/src/lib/eet_lib.c b/src/lib/eet_lib.c index 7206ed9..2050eb6 100644 --- a/src/lib/eet_lib.c +++ b/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 -- 2.7.4