diff options
author | Jens Hamisch <jens@Strawberry.COM> | 2000-10-17 10:39:36 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-10-20 12:57:19 +0000 |
commit | f269dd06c6e6846627d56890bf93bf0503f0a36f (patch) | |
tree | 16e8ee2d8cf1f9e2afde15d52e936e3f91a3b116 /doio.c | |
parent | ef060a86ec01add98aaa6268b36dd5f691dc2bf2 (diff) | |
download | perl-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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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> |