summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-07-06 06:52:57 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-07-06 06:52:57 +0000
commit626727d5e2c1f691a308ce30d70cf3d5998f4c53 (patch)
tree611b9fa6b8a42a175956122a38e7e90da42b04f6 /pp_sys.c
parentabf95952312f9cf679a3ebd0bb2f1758f1585f0f (diff)
parent7c7bf78e2115cf1c10624a9f40e98f0bff340218 (diff)
downloadperl-626727d5e2c1f691a308ce30d70cf3d5998f4c53.tar.gz
integrate cfgperl contents into mainline
p4raw-id: //depot/perl@3601
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 4e34a9e288..5bb0ca30d4 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -46,6 +46,9 @@ extern "C" int syscall(unsigned long,...);
#if defined(HAS_SOCKET) && !defined(VMS) /* VMS handles sockets via vmsish.h */
# include <sys/socket.h>
+# if defined(USE_SOCKS) && defined(I_SOCKS)
+# include <socks.h>
+# endif
# ifdef I_NETDB
# include <netdb.h>
# endif
@@ -1466,6 +1469,10 @@ PP(pp_sysread)
if (bufsize >= 256)
bufsize = 255;
#endif
+#ifdef OS2 /* At least Warp3+IAK: only the first byte of bufsize set */
+ if (bufsize >= 256)
+ bufsize = 255;
+#endif
buffer = SvGROW(bufsv, length+1);
/* 'offset' means 'flags' here */
length = PerlSock_recvfrom(PerlIO_fileno(IoIFP(io)), buffer, length, offset,