diff options
author | Jens Hamisch <jens@Strawberry.COM> | 2000-11-14 12:34:40 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-14 15:42:40 +0000 |
commit | 1e743fda37685ecafb0bc463ccd70b605724c884 (patch) | |
tree | 03b8db2b21002acf1312ed8aed1580cabba50256 /pp_sys.c | |
parent | fd826df20626be7c608e33b1edcdc11e7174f60a (diff) | |
download | perl-1e743fda37685ecafb0bc463ccd70b605724c884.tar.gz |
Hoist the duplicated socket/netdb include logic to perl.h;
undef SETERRNO in case SOCKS has defined it. Based on:
Subject: [ID 20001114.002] Code-Cleanups concerning SOCKS5 and Solaris
Message-Id: <20001114113440.A20005@Strawberry.COM>
p4raw-id: //depot/perl@7683
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 29 |
1 files changed, 3 insertions, 26 deletions
@@ -54,33 +54,10 @@ extern "C" int syscall(unsigned long,...); # include <sys/resource.h> #endif -#if defined(HAS_SOCKET) && !defined(VMS) /* VMS handles sockets via vmsish.h */ -# include <sys/socket.h> -# if defined(USE_SOCKS) && defined(I_SOCKS) -# if !defined(INCLUDE_PROTOTYPES) -# define INCLUDE_PROTOTYPES /* for <socks.h> */ -# define PERL_SOCKS_NEED_PROTOTYPES -# endif -# include <socks.h> -# ifdef PERL_SOCKS_NEED_PROTOTYPES /* keep cpp space clean */ -# undef INCLUDE_PROTOTYPES -# undef PERL_SOCKS_NEED_PROTOTYPES -# endif -# endif -# ifdef I_NETDB -# include <netdb.h> -# endif -# ifndef ENOTSOCK -# ifdef I_NET_ERRNO -# include <net/errno.h> -# endif -# endif -#endif - #ifdef HAS_SELECT -#ifdef I_SYS_SELECT -#include <sys/select.h> -#endif +# ifdef I_SYS_SELECT +# include <sys/select.h> +# endif #endif /* XXX Configure test needed. |