summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorJens Hamisch <jens@Strawberry.COM>2000-10-17 10:39:36 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-20 12:57:19 +0000
commitf269dd06c6e6846627d56890bf93bf0503f0a36f (patch)
tree16e8ee2d8cf1f9e2afde15d52e936e3f91a3b116 /doio.c
parentef060a86ec01add98aaa6268b36dd5f691dc2bf2 (diff)
downloadperl-f269dd06c6e6846627d56890bf93bf0503f0a36f.tar.gz
SOCKS function redefinitions need prototypes, too, otherwise
for example 32 bit versus 64 bit differences cause a lot of problems. Part of Subject: [ID 20001016.017] [jens: 5.7.0 Solaris 8, 64 Bit, Workshop 6.0 Compiler] Message-Id: <20001017083936.A11104@Strawberry.COM> p4raw-id: //depot/perl@7378
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/doio.c b/doio.c
index eba2f8cbf8..87e53a4b16 100644
--- a/doio.c
+++ b/doio.c
@@ -59,7 +59,15 @@
#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_NETBSD
# include <netdb.h>