summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-11-21 17:01:16 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-11-21 17:01:16 +0000
commit0e32cd814ab750f37cd765de6c19a6a112c89a81 (patch)
treee9437eadb587a5acdf4c3963eb128d2dc2fdc970 /doio.c
parenta6259068d1da929c6ca4f5acc9ed0401b5239600 (diff)
downloadperl-0e32cd814ab750f37cd765de6c19a6a112c89a81.tar.gz
Export the SOCKS workaround symbols only if necessary.
p4raw-id: //depot/perl@7791
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/doio.c b/doio.c
index e4d26eb1c4..a4a55b085e 100644
--- a/doio.c
+++ b/doio.c
@@ -2090,18 +2090,20 @@ Perl_do_shmio(pTHX_ I32 optype, SV **mark, SV **sp)
#endif /* SYSV IPC */
+#ifdef SOCKS_64BIT_BUG
+
/**
** getc and ungetc wrappers for the 64 bit problems with SOCKS 5 support
** Workaround to the problem, that SOCKS maps a socket 'getc' to revc
** without checking the ungetc buffer.
**/
-#ifdef SOCKS_64BIT_BUG
+
static S64_IOB *s64_buffer = (S64_IOB *) NULL;
/* get a buffered stream pointer */
-static S64_IOB *_s64_get_buffer( PerlIO *f) {
+static S64_IOB *S_s64_get_buffer( PerlIO *fp) {
S64_IOB *ptr = s64_buffer;
- while( ptr && ptr->fp != f)
+ while( ptr && ptr->fp != fp)
ptr = ptr->next;
return( ptr);
}