some platforms (e.g. FreeBSD4) need netinet/in.h to be included
authorLuigi Rizzo <rizzo@icir.org>
Sat, 8 Dec 2007 03:26:09 +0000 (03:26 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Sat, 8 Dec 2007 03:26:09 +0000 (03:26 +0000)
before arpa/inet.h

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@91929 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/network.h

index 23778ad..00aebe4 100644 (file)
@@ -38,8 +38,8 @@ extern "C" {
  * for the missing bits.
  */
 #ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>         /* include early to override inet_ntoa */
 #include <netinet/in.h>
+#include <arpa/inet.h>         /* include early to override inet_ntoa */
 #include <netinet/in_systm.h>
 #include <netinet/ip.h>
 #include <netinet/tcp.h>