windows: Provide shutdown(2) operation aliases mapping to those on Windows
This commit is contained in:
parent
c079c098c4
commit
2162e50004
|
@ -280,6 +280,13 @@ char* getpass(const char *prompt);
|
|||
#define ECONNRESET ENXIO
|
||||
#endif
|
||||
|
||||
/**
|
||||
* shutdown(2) "how"-aliases, to use Unix variant on Windows
|
||||
*/
|
||||
#define SHUT_RD SD_RECEIVE
|
||||
#define SHUT_WR SD_SEND
|
||||
#define SHUT_RDWR SD_BOTH
|
||||
|
||||
/**
|
||||
* close(2) working for file handles and Winsock sockets
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue