Fixup to the previous (portability) patch. Linux actually does need

arpa/inet.h rather than netinet/in.h, otherwise we get warnings.
This commit is contained in:
Rob Landley 2006-03-09 22:39:08 +00:00
parent 1f305dc0fd
commit dae6aa2859
3 changed files with 9 additions and 2 deletions

View 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" */

View File

@ -20,7 +20,6 @@
#include <stdint.h>
#include <netdb.h>
#include <netinet/in.h>
#include <features.h>

View File

@ -92,8 +92,16 @@
#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)