add SD_RECEIVE definition

This commit is contained in:
AdamN authored and GitHub committed 2024-06-29 00:29:15 +07:00
1 parent 13506d3d02
commit 6cccb9cb72
1 file changed
+4
+4
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