aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/bin/e_sha1.c9
-rw-r--r--src/modules/mixer/pa.h8
3 files changed, 17 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 55831e8bd..6aaa9d0db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -76,7 +76,7 @@ AC_CHECK_FUNCS(unsetenv)
efl_version="1.7.0"
-AC_CHECK_HEADERS([sys/timerfd.h sys/ptrace.h])
+AC_CHECK_HEADERS([sys/timerfd.h sys/ptrace.h arpa/inet.h netinet/in.h])
dnl AC_CHECK_HEADERS(X11/extensions/shape.h,, AC_MSG_ERROR([Cannot find X11/extensions/shape.h. Make sure your CFLAGS environment variable contains include lines for the location of this file]))
diff --git a/src/bin/e_sha1.c b/src/bin/e_sha1.c
index d160c872e..98105cbb0 100644
--- a/src/bin/e_sha1.c
+++ b/src/bin/e_sha1.c
@@ -1,6 +1,13 @@
#include "e_sha1.h"
#include <string.h>
-#include <arpa/inet.h>
+
+#ifdef HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+#endif
+
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
/* externally accessible functions */
diff --git a/src/modules/mixer/pa.h b/src/modules/mixer/pa.h
index c5870f069..4e5110404 100644
--- a/src/modules/mixer/pa.h
+++ b/src/modules/mixer/pa.h
@@ -5,6 +5,14 @@
# include "config.h"
#endif
+#ifdef HAVE_ARPA_INET_H
+# include <arpa/inet.h>
+#endif
+
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+
#include <Ecore.h>
#include <Ecore_Con.h>
#include <inttypes.h>