summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2013-09-06 14:34:56 -0300
committerBrian Fraser <fraserbn@gmail.com>2013-09-21 08:47:41 -0300
commitc23583cd92a3cd7faff88e9bad65ed3e253c657b (patch)
treeec4a877dc64499caf50b6a676b7f7145d1c9213b /pp_sys.c
parent72f4c67af3e64b7477b287a4dbb849fc073b9c5e (diff)
downloadperl-c23583cd92a3cd7faff88e9bad65ed3e253c657b.tar.gz
Removed HAS_SOCKET__bad_code_maybe
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 7143431c4b..8e09e736db 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -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 */