diff options
author | Brian Fraser <fraserbn@gmail.com> | 2013-09-06 14:34:56 -0300 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2013-09-21 08:47:41 -0300 |
commit | c23583cd92a3cd7faff88e9bad65ed3e253c657b (patch) | |
tree | ec4a877dc64499caf50b6a676b7f7145d1c9213b /pp_sys.c | |
parent | 72f4c67af3e64b7477b287a4dbb849fc073b9c5e (diff) | |
download | perl-c23583cd92a3cd7faff88e9bad65ed3e253c657b.tar.gz |
Removed HAS_SOCKET__bad_code_maybe
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -1769,20 +1769,6 @@ PP(pp_sysread) } } else -#ifdef HAS_SOCKET__bad_code_maybe - if (IoTYPE(io) == IoTYPE_SOCKET) { - Sock_size_t bufsize; - char namebuf[MAXPATHLEN]; -#if defined(VMS_DO_SOCKETS) && defined(DECCRTL_SOCKETS) - bufsize = sizeof (struct sockaddr_in); -#else - bufsize = sizeof namebuf; -#endif - count = PerlSock_recvfrom(PerlIO_fileno(IoIFP(io)), buffer, length, 0, - (struct sockaddr *)namebuf, &bufsize); - } - else -#endif { count = PerlIO_read(IoIFP(io), buffer, length); /* PerlIO_read() - like fread() returns 0 on both error and EOF */ |