diff options
author | Rob Landley <rob@landley.net> | 2006-03-09 22:39:08 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-03-09 22:39:08 +0000 |
commit | dae6aa28598cb2353291f18ca52e768c3259165a (patch) | |
tree | 89d64a7f3656c01ec09a1e00b4878fc3a7b2b7ba /include/platform.h | |
parent | 1f305dc0fdb8415c9c1321e49cc194089e58c456 (diff) | |
download | busybox-w32-dae6aa28598cb2353291f18ca52e768c3259165a.tar.gz busybox-w32-dae6aa28598cb2353291f18ca52e768c3259165a.tar.bz2 busybox-w32-dae6aa28598cb2353291f18ca52e768c3259165a.zip |
Fixup to the previous (portability) patch. Linux actually does need
arpa/inet.h rather than netinet/in.h, otherwise we get warnings.
Diffstat (limited to 'include/platform.h')
-rw-r--r-- | include/platform.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h index 3f4bedbe8..a19916970 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -92,8 +92,16 @@ | |||
92 | #define BB_BIG_ENDIAN 0 | 92 | #define BB_BIG_ENDIAN 0 |
93 | #endif | 93 | #endif |
94 | 94 | ||
95 | /* ---- Networking ------------------------------------------ */ | ||
96 | #ifndef __APPLE__ | ||
97 | #include <arpa/inet.h> | ||
98 | #else | ||
99 | #include <netinet/in.h> | ||
100 | #endif | ||
101 | |||
95 | /* ---- miscellaneous --------------------------------------- */ | 102 | /* ---- miscellaneous --------------------------------------- */ |
96 | /* NLS stuff */ | 103 | /* NLS stuff */ |
104 | /* THIS SHOULD BE CLEANED OUT OF THE TREE ENTIRELY */ | ||
97 | #define _(Text) Text | 105 | #define _(Text) Text |
98 | #define N_(Text) (Text) | 106 | #define N_(Text) (Text) |
99 | 107 | ||