summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorJens Hamisch <jens@Strawberry.COM>2000-11-14 12:34:40 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-14 15:42:40 +0000
commit1e743fda37685ecafb0bc463ccd70b605724c884 (patch)
tree03b8db2b21002acf1312ed8aed1580cabba50256 /pp_sys.c
parentfd826df20626be7c608e33b1edcdc11e7174f60a (diff)
downloadperl-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.c29
1 files changed, 3 insertions, 26 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 4b8bfce2bd..43b3f66dd7 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -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.