E17: define htonl correctly
authorVincent Torri <vincent.torri@gmail.com>
Sat, 1 Dec 2012 07:19:18 +0000 (07:19 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Sat, 1 Dec 2012 07:19:18 +0000 (07:19 +0000)
SVN revision: 79960

configure.ac
src/bin/e_sha1.c
src/modules/mixer/pa.h

index 55831e8..6aaa9d0 100644 (file)
@@ -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]))
 
index d160c87..98105cb 100644 (file)
@@ -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 */
 
index c5870f0..4e51104 100644 (file)
@@ -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>