Mercurial > hg > octave-nkf > gnulib-hg
changeset 6571:f7945ef945d6
* socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
author | Simon Josefsson <simon@josefsson.org> |
---|---|
date | Thu, 19 Jan 2006 13:45:37 +0000 |
parents | c965a389db71 |
children | df6195e003c4 |
files | lib/ChangeLog lib/socket_.h |
diffstat | 2 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,7 @@ +2006-01-19 Simon Josefsson <jas@extundo.com> + + * socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly. + 2006-01-12 Simon Josefsson <jas@extundo.com> * base64.c: Fix warning, reported by Bruno Haible
--- a/lib/socket_.h +++ b/lib/socket_.h @@ -34,4 +34,15 @@ # include <ws2tcpip.h> #endif +/* For shutdown(). */ +#if !defined(SHUT_RD) && defined (SD_RECEIVE) +# define SHUT_RD SD_RECEIVE +#endif +#if !defined(SHUT_WR) && defined (SD_SEND) +# define SHUT_WR 1 +#endif +#if !defined(SHUT_RDWR) && defined (SD_BOTH) +# define SHUT_RDWR 2 +#endif + #endif /* _SYS_SOCKET_H */