summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2016-11-16 18:26:56 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-11-16 19:50:24 +0900
commitc0d8f1cc3763570b20b90c024cfad01c11db273d (patch)
tree469a846a1433f7239a5fc084d28a423a9edc0064
parent9ba11c5cd020b6ec5cb78dfaeda2d4c0472659ab (diff)
downloadefl-c0d8f1cc3763570b20b90c024cfad01c11db273d.tar.gz
ecore_con: correctly include sys/ioctl.h
I had to make distclean for this patch to work. Differential Revision: https://phab.enlightenment.org/D4402
-rw-r--r--configure.ac1
-rw-r--r--src/lib/ecore_con/ecore_con.c6
2 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 3c4eb481bd..ca58fff89e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1777,6 +1777,7 @@ netinet/in.h \
netinet/tcp.h \
netinet/udp.h \
sys/prctl.h \
+sys/ioctl.h \
sys/resource.h \
sys/timerfd.h \
sys/un.h \
diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c
index 56a5f899fd..48b1d1c4c7 100644
--- a/src/lib/ecore_con/ecore_con.c
+++ b/src/lib/ecore_con/ecore_con.c
@@ -26,6 +26,10 @@
# include <arpa/inet.h>
#endif
+#ifdef HAVE_SYS_IOCTL_H
+# include <sys/ioctl.h>
+#endif
+
#ifdef HAVE_SYSTEMD
# include <systemd/sd-daemon.h>
#endif
@@ -38,8 +42,6 @@
# include <Evil.h>
#endif
-#include <sys/ioctl.h>
-
#include "Ecore.h"
#include "ecore_private.h"
#include "Ecore_Con.h"