diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-21 17:01:16 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-21 17:01:16 +0000 |
commit | 0e32cd814ab750f37cd765de6c19a6a112c89a81 (patch) | |
tree | e9437eadb587a5acdf4c3963eb128d2dc2fdc970 /doio.c | |
parent | a6259068d1da929c6ca4f5acc9ed0401b5239600 (diff) | |
download | perl-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.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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); } |