diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-11-02 13:04:23 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-11-02 13:04:23 +0000 |
commit | dc82f9e6dffa3c1f3540ae2c9b9e54adb9d45e0a (patch) | |
tree | e80e84f6d028e7f1be455ccd312ed33ff8bcf6bc /lib/setup.h | |
parent | e60e7414b94617cfcaa458028ca91667addb07f4 (diff) | |
download | curl-dc82f9e6dffa3c1f3540ae2c9b9e54adb9d45e0a.tar.gz |
Replaced read() and write() with recv() and send() for socket operations
even under normal unixes.
Diffstat (limited to 'lib/setup.h')
-rw-r--r-- | lib/setup.h | 4 |
1 files 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 ":" |