From dc82f9e6dffa3c1f3540ae2c9b9e54adb9d45e0a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 2 Nov 2001 13:04:23 +0000 Subject: [PATCH] Replaced read() and write() with recv() and send() for socket operations even under normal unixes. --- lib/setup.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/setup.h b/lib/setup.h index d238d70cc..6576919ea 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -125,8 +125,8 @@ defined(HAVE_LIBSSL) && defined(HAVE_LIBCRYPTO) #else #define sclose(x) close(x) -#define sread(x,y,z) read(x,y,z) -#define swrite(x,y,z) write(x,y,z) +#define sread(x,y,z) recv(x,y,z,0) +#define swrite(x,y,z) send(x,y,z,0) #define myalarm(x) alarm(x) #define PATH_CHAR ":"