aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-10 20:25:26 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2013-01-10 20:25:26 +0000
commitdb395ef7eb4cb31a1ba81175e703d8409ebd36ca (patch)
treeda311328dc428f4b9f392e85ec3899417d8daca0
parent3dc661e710f4f056a376ce18a9ea0e7cceeb4200 (diff)
downloadefl-db395ef7eb4cb31a1ba81175e703d8409ebd36ca.tar.gz
efl-db395ef7eb4cb31a1ba81175e703d8409ebd36ca.tar.xz
efl-db395ef7eb4cb31a1ba81175e703d8409ebd36ca.zip
efl: Remove check for unistd.h
* unistd.h: is very useful, very old and very standard. SVN revision: 82577
-rw-r--r--configure.ac1
-rw-r--r--m4/efl_check_funcs.m44
-rw-r--r--src/bin/eet/eet_main.c5
-rw-r--r--src/bin/embryo/embryo_cc_sc1.c5
-rw-r--r--src/bin/embryo/embryo_cc_sc5.c5
-rw-r--r--src/bin/evas/loaders/psd/evas_image_load_psd.c5
-rw-r--r--src/lib/ecore/ecore.c5
-rw-r--r--src/lib/ecore/ecore_app.c5
-rw-r--r--src/lib/ecore/ecore_main.c5
-rw-r--r--src/lib/ecore/ecore_thread.c5
-rw-r--r--src/lib/ecore/ecore_throttle.c5
-rw-r--r--src/lib/eet/eet_cipher.c5
-rw-r--r--src/lib/eet/eet_lib.c5
-rw-r--r--src/lib/eina/eina_log.c5
-rw-r--r--src/lib/eina/eina_main.c4
-rw-r--r--src/lib/eina/eina_prefix.c5
-rw-r--r--src/lib/eina/eina_xattr.c4
-rw-r--r--src/lib/eio/eio_private.h5
-rw-r--r--src/modules/emotion/gstreamer/emotion_gstreamer.c4
-rw-r--r--src/modules/evas/loaders/psd/evas_image_load_psd.c5
20 files changed, 19 insertions, 73 deletions
diff --git a/configure.ac b/configure.ac
index 0920b6066..11d02190d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -392,7 +392,6 @@ sys/signalfd.h \
sys/types.h \
sys/param.h \
sys/mman.h \
-unistd.h \
])
have_inotify="${ac_cv_header_sys_inotify_h}"
diff --git a/m4/efl_check_funcs.m4 b/m4/efl_check_funcs.m4
index 035668537..59a38f789 100644
--- a/m4/efl_check_funcs.m4
+++ b/m4/efl_check_funcs.m4
@@ -211,9 +211,7 @@ dnl _EFL_CHECK_FUNC_SPLICE is for internal use
dnl _EFL_CHECK_FUNC_SPLICE(EFL, VARIABLE)
AC_DEFUN([_EFL_CHECK_FUNC_SPLICE],
[EFL_FIND_LIB_FOR_CODE([$1], [], [$2], [[
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
#include <fcntl.h>
]], [[
long ret = splice(0, 0, 1, 0, 400, 0);
diff --git a/src/bin/eet/eet_main.c b/src/bin/eet/eet_main.c
index eff7207de..e59c2599e 100644
--- a/src/bin/eet/eet_main.c
+++ b/src/bin/eet/eet_main.c
@@ -5,10 +5,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif /* ifdef HAVE_UNISTD_H */
+#include <unistd.h>
#ifdef HAVE_EVIL
# include <Evil.h>
diff --git a/src/bin/embryo/embryo_cc_sc1.c b/src/bin/embryo/embryo_cc_sc1.c
index f396f4f6e..f94104118 100644
--- a/src/bin/embryo/embryo_cc_sc1.c
+++ b/src/bin/embryo/embryo_cc_sc1.c
@@ -33,12 +33,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <unistd.h>
#include <sys/stat.h>
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
#ifdef HAVE_EVIL
# include <Evil.h>
#endif
diff --git a/src/bin/embryo/embryo_cc_sc5.c b/src/bin/embryo/embryo_cc_sc5.c
index f284420bb..838a08aac 100644
--- a/src/bin/embryo/embryo_cc_sc5.c
+++ b/src/bin/embryo/embryo_cc_sc5.c
@@ -31,10 +31,7 @@
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
#include <Eina.h>
diff --git a/src/bin/evas/loaders/psd/evas_image_load_psd.c b/src/bin/evas/loaders/psd/evas_image_load_psd.c
index 29f1c1975..0c8585fc2 100644
--- a/src/bin/evas/loaders/psd/evas_image_load_psd.c
+++ b/src/bin/evas/loaders/psd/evas_image_load_psd.c
@@ -7,6 +7,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <unistd.h>
#include <errno.h>
#include <math.h>
@@ -18,10 +19,6 @@
# include <netinet/in.h>
#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
#ifdef HAVE_EVIL
# include <Evil.h>
#endif
diff --git a/src/lib/ecore/ecore.c b/src/lib/ecore/ecore.c
index 3aa15bf77..eb306408b 100644
--- a/src/lib/ecore/ecore.c
+++ b/src/lib/ecore/ecore.c
@@ -6,13 +6,10 @@
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif
diff --git a/src/lib/ecore/ecore_app.c b/src/lib/ecore/ecore_app.c
index 04df487d3..716cd4a1a 100644
--- a/src/lib/ecore/ecore_app.c
+++ b/src/lib/ecore/ecore_app.c
@@ -3,10 +3,7 @@
#endif
#include <stdlib.h>
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
#ifdef _MSC_VER
# include <process.h>
diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index 9f531361f..b6f27a949 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -18,6 +18,7 @@
#include <stdlib.h>
#include <stdio.h>
+#include <unistd.h>
#include <math.h>
#include <sys/types.h>
#include <errno.h>
@@ -27,10 +28,6 @@
# include <sys/time.h>
#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
#ifdef _MSC_VER
# include <float.h>
#endif
diff --git a/src/lib/ecore/ecore_thread.c b/src/lib/ecore/ecore_thread.c
index 954d3a182..53da07ac4 100644
--- a/src/lib/ecore/ecore_thread.c
+++ b/src/lib/ecore/ecore_thread.c
@@ -6,10 +6,7 @@
#include <sys/time.h>
#include <assert.h>
#include <sys/types.h>
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
#ifdef HAVE_EVIL
# include <Evil.h>
diff --git a/src/lib/ecore/ecore_throttle.c b/src/lib/ecore/ecore_throttle.c
index febaeacb7..de0a43ed9 100644
--- a/src/lib/ecore/ecore_throttle.c
+++ b/src/lib/ecore/ecore_throttle.c
@@ -3,10 +3,7 @@
#endif
#include <stdlib.h>
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
#include "Ecore.h"
#include "ecore_private.h"
diff --git a/src/lib/eet/eet_cipher.c b/src/lib/eet/eet_cipher.c
index 60105acde..5eb2f8795 100644
--- a/src/lib/eet/eet_cipher.c
+++ b/src/lib/eet/eet_cipher.c
@@ -6,10 +6,7 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
-
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif /* ifdef HAVE_UNISTD_H */
+#include <unistd.h>
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
diff --git a/src/lib/eet/eet_lib.c b/src/lib/eet/eet_lib.c
index 7717fdf9f..41f29757d 100644
--- a/src/lib/eet/eet_lib.c
+++ b/src/lib/eet/eet_lib.c
@@ -12,14 +12,11 @@
#include <sys/stat.h>
#include <time.h>
#include <string.h>
+#include <unistd.h>
#include <fnmatch.h>
#include <fcntl.h>
#include <zlib.h>
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif /* ifdef HAVE_UNISTD_H */
-
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif /* ifdef HAVE_NETINET_IN_H */
diff --git a/src/lib/eina/eina_log.c b/src/lib/eina/eina_log.c
index f4e343688..0be1cb8a0 100644
--- a/src/lib/eina/eina_log.c
+++ b/src/lib/eina/eina_log.c
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <unistd.h>
#include <fnmatch.h>
#include <assert.h>
#include <errno.h>
@@ -33,10 +34,6 @@
# define EINA_LOG_BACKTRACE
#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
#ifdef HAVE_EVIL
# include <Evil.h>
#endif
diff --git a/src/lib/eina/eina_main.c b/src/lib/eina/eina_main.c
index 893ca8e5d..667c3a1b7 100644
--- a/src/lib/eina/eina_main.c
+++ b/src/lib/eina/eina_main.c
@@ -32,9 +32,7 @@
# ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
# endif
-# ifdef HAVE_UNISTD_H
-# include <unistd.h>
-# endif
+# include <unistd.h>
#endif
#ifdef HAVE_MCHECK_H
diff --git a/src/lib/eina/eina_prefix.c b/src/lib/eina/eina_prefix.c
index ed20d84f6..b1b4d8642 100644
--- a/src/lib/eina/eina_prefix.c
+++ b/src/lib/eina/eina_prefix.c
@@ -34,12 +34,9 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <unistd.h>
#include <limits.h>
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
#ifdef HAVE_DLADDR
# include <dlfcn.h>
#endif
diff --git a/src/lib/eina/eina_xattr.c b/src/lib/eina/eina_xattr.c
index e1fac0fa2..a8521da58 100644
--- a/src/lib/eina/eina_xattr.c
+++ b/src/lib/eina/eina_xattr.c
@@ -23,15 +23,13 @@
#include <stdlib.h>
#include <sys/types.h>
#include <string.h>
+#include <unistd.h>
#include <math.h>
#ifdef HAVE_XATTR
# include <sys/xattr.h>
#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
#include <fcntl.h>
#include "eina_config.h"
diff --git a/src/lib/eio/eio_private.h b/src/lib/eio/eio_private.h
index 3a4720089..1fb5ee445 100644
--- a/src/lib/eio/eio_private.h
+++ b/src/lib/eio/eio_private.h
@@ -39,16 +39,13 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
+#include <unistd.h>
#include <fcntl.h>
#ifdef HAVE_FEATURES_H
# include <features.h>
#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
#ifdef HAVE_LIBGEN_H
# include <libgen.h>
#endif
diff --git a/src/modules/emotion/gstreamer/emotion_gstreamer.c b/src/modules/emotion/gstreamer/emotion_gstreamer.c
index 8138ae641..f5669caf6 100644
--- a/src/modules/emotion/gstreamer/emotion_gstreamer.c
+++ b/src/modules/emotion/gstreamer/emotion_gstreamer.c
@@ -2,9 +2,7 @@
# include "config.h"
#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
+#include <unistd.h>
#include <fcntl.h>
#include <Eina.h>
diff --git a/src/modules/evas/loaders/psd/evas_image_load_psd.c b/src/modules/evas/loaders/psd/evas_image_load_psd.c
index 414b02dd3..621374535 100644
--- a/src/modules/evas/loaders/psd/evas_image_load_psd.c
+++ b/src/modules/evas/loaders/psd/evas_image_load_psd.c
@@ -12,16 +12,13 @@
#include <math.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <unistd.h>
#include <fcntl.h>
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
#ifdef HAVE_EVIL
# include <Evil.h>
#endif