diff options
author | Jean Guyomarc'h <jean@guyomarch.bzh> | 2016-11-15 21:13:37 +0100 |
---|---|---|
committer | Jean Guyomarc'h <jean@guyomarch.bzh> | 2016-11-15 22:19:58 +0100 |
commit | fca0627232c3f69b3d62fedce5414d23926edeff (patch) | |
tree | 54efaad0828e14eadf8d026338c0887b6bf14d76 | |
parent | a1e1bb01bafffdf5920f6947b4d99b8c5b9c5621 (diff) | |
download | efl-fca0627232c3f69b3d62fedce5414d23926edeff.tar.gz |
ecore_con: include sys/ioctl.h only when available
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/lib/ecore_con/ecore_con.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 795eb414db..f30ce2505e 100644 --- a/configure.ac +++ b/configure.ac @@ -458,6 +458,7 @@ execinfo.h \ mcheck.h \ sys/epoll.h \ sys/inotify.h \ +sys/ioctl.h \ sys/signalfd.h \ sys/types.h \ sys/param.h \ diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index 56a5f899fd..be24bb31da 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c @@ -38,7 +38,9 @@ # include <Evil.h> #endif -#include <sys/ioctl.h> +#ifdef HAVE_SYS_IOCTL_H +# include <sys/ioctl.h> +#endif #include "Ecore.h" #include "ecore_private.h" |