[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: socket.h
From: |
Simon Josefsson |
Subject: |
Re: socket.h |
Date: |
Tue, 24 Jan 2006 12:56:40 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> Simon Josefsson wrote:
>> +#if !defined(SHUT_WR) && defined (SD_SEND)
>> +# define SHUT_WR 1
>> +#endif
>> +#if !defined(SHUT_RDWR) && defined (SD_BOTH)
>> +# define SHUT_RDWR 2
>> +#endif
>
> Is SD_SEND == 1 and SD_BOTH == 2 ?
Yes, although it is a mistake to hard code that. Thanks for catching
it. I have installed this:
2006-01-19 Simon Josefsson <address@hidden>
* socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
--- socket_.h 19 Jan 2006 14:39:07 +0100 1.2
+++ socket_.h 24 Jan 2006 12:54:30 +0100
@@ -39,10 +39,10 @@
# define SHUT_RD SD_RECEIVE
#endif
#if !defined(SHUT_WR) && defined (SD_SEND)
-# define SHUT_WR 1
+# define SHUT_WR SD_SEND
#endif
#if !defined(SHUT_RDWR) && defined (SD_BOTH)
-# define SHUT_RDWR 2
+# define SHUT_RDWR SD_BOTH
#endif
#endif /* _SYS_SOCKET_H */
Re: socket.h, Simon Josefsson, 2006/01/24