Fixup to the previous (portability) patch. Linux actually does need
authorRob Landley <rob@landley.net>
Thu, 9 Mar 2006 22:39:08 +0000 (22:39 -0000)
committerRob Landley <rob@landley.net>
Thu, 9 Mar 2006 22:39:08 +0000 (22:39 -0000)
arpa/inet.h rather than netinet/in.h, otherwise we get warnings.

include/inet_common.h
include/libbb.h
include/platform.h

index f330aa9..aa883ed 100644 (file)
@@ -11,7 +11,7 @@
 #include <features.h>
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <netinet/in.h>
+#include "platform.h"
 
 
 extern const char bb_INET_default[];    /* = "default" */
index 0490ee3..bc3fa59 100644 (file)
@@ -20,7 +20,6 @@
 #include <stdint.h>
 
 #include <netdb.h>
-#include <netinet/in.h>
 
 #include <features.h>
 
index 3f4bedb..a199169 100644 (file)
     #define BB_BIG_ENDIAN 0
 #endif
 
+/* ---- Networking ------------------------------------------ */
+#ifndef __APPLE__
+#include <arpa/inet.h>
+#else
+#include <netinet/in.h>
+#endif
+
 /* ---- miscellaneous --------------------------------------- */
 /* NLS stuff */
+/* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */
 #define _(Text) Text
 #define N_(Text) (Text)