add SD_RECEIVE definition

This commit is contained in:
AdamN 2024-06-29 00:29:15 +07:00 committed by GitHub
parent 13506d3d02
commit 6cccb9cb72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,6 +111,10 @@ inline bool isDisconnected(int errcode) { return (errcode == EPIPE || errcode ==
#define POLLPRI POLL_PRI
#endif
#ifndef SD_RECEIVE
#define SD_RECEIVE SHUT_RD //0x00
#endif
#ifndef SD_BOTH
#define SD_BOTH SHUT_RDWR //0x02
#endif