From 9cd0063a2c2039785030a9822e8ab7a150a1c73c Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 30 Apr 2016 19:33:31 -0500 Subject: [PATCH] librb: fix commio build on win32 --- librb/include/commio-int.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/librb/include/commio-int.h b/librb/include/commio-int.h index da2833a4..cd573fef 100644 --- a/librb/include/commio-int.h +++ b/librb/include/commio-int.h @@ -87,6 +87,9 @@ struct acceptdata #define SetFDOpen(F) (F->flags |= FLAG_OPEN) #define ClearFDOpen(F) (F->flags &= ~FLAG_OPEN) +#if !defined(SHUT_RDWR) && defined(_WIN32) +# define SHUT_RDWR SD_BOTH +#endif struct _fde {