diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-05-11 22:03:48 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-05-11 22:03:48 +0000 |
commit | 9cc6feabb930fb7cac992ab0a2febf2fb1986667 (patch) | |
tree | 736aa7fe34919dd58d35dc7dbecfe76629b1253b /ext | |
parent | 27130c9a98b24c6442a9f796599b1927247c27ab (diff) | |
download | perl-9cc6feabb930fb7cac992ab0a2febf2fb1986667.tar.gz |
Add I_NETINET_TCP to help change #3391.
p4raw-link: @3391 on //depot/perl: 1494e794755363d23b7bca66c4a024ccc839e963
p4raw-id: //depot/cfgperl@3394
Diffstat (limited to 'ext')
-rw-r--r-- | ext/Socket/Socket.xs | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/ext/Socket/Socket.xs b/ext/Socket/Socket.xs index 51825871b7..b2b145577f 100644 --- a/ext/Socket/Socket.xs +++ b/ext/Socket/Socket.xs @@ -6,48 +6,49 @@ # ifdef I_SYS_TYPES # include <sys/types.h> # endif -#include <sys/socket.h> -#ifdef MPE -# define PF_INET AF_INET -# define PF_UNIX AF_UNIX -# define SOCK_RAW 3 -#endif -#ifdef I_SYS_UN -#include <sys/un.h> -#endif +# include <sys/socket.h> +# ifdef MPE +# define PF_INET AF_INET +# define PF_UNIX AF_UNIX +# define SOCK_RAW 3 +# endif +# ifdef I_SYS_UN +# include <sys/un.h> +# endif # ifdef I_NETINET_IN # include <netinet/in.h> # endif -#include <netdb.h> -#ifdef I_ARPA_INET -# include <arpa/inet.h> -#endif +# include <netdb.h> +# ifdef I_ARPA_INET +# include <arpa/inet.h> +# endif +# ifdef I_NETINET_TCP +# include <netinet/tcp.h> +# endif #else -#include "sockadapt.h" +# include "sockadapt.h" #endif -#include <netinet/tcp.h> - #ifdef I_SYSUIO # include <sys/uio.h> #endif #ifndef AF_NBS -#undef PF_NBS +# undef PF_NBS #endif #ifndef AF_X25 -#undef PF_X25 +# undef PF_X25 #endif #ifndef INADDR_NONE -#define INADDR_NONE 0xffffffff +# define INADDR_NONE 0xffffffff #endif /* INADDR_NONE */ #ifndef INADDR_BROADCAST -#define INADDR_BROADCAST 0xffffffff +# define INADDR_BROADCAST 0xffffffff #endif /* INADDR_BROADCAST */ #ifndef INADDR_LOOPBACK -#define INADDR_LOOPBACK 0x7F000001 +# define INADDR_LOOPBACK 0x7F000001 #endif /* INADDR_LOOPBACK */ #ifndef HAS_INET_ATON |