Very simple support for SO_OPENTYPE in getsockopt and setsockopt.
diff --git a/include/winsock.h b/include/winsock.h
index 502ca8c..9d2db31 100644
--- a/include/winsock.h
+++ b/include/winsock.h
@@ -591,6 +591,10 @@
#define SO_ERROR 0x1007
#define SO_TYPE 0x1008
+#define SO_OPENTYPE 0x7008
+#define SO_SYNCHRONOUS_ALERT 0x10
+#define SO_SYNCHRONOUS_NONALERT 0x20
+
#define IOCPARM_MASK 0x7f
#define IOC_VOID 0x20000000
#define IOC_OUT 0x40000000
@@ -623,6 +627,10 @@
#define WS_SO_ERROR 0x1007
#define WS_SO_TYPE 0x1008
+#define WS_SO_OPENTYPE 0x7008
+#define WS_SO_SYNCHRONOUS_ALERT 0x10
+#define WS_SO_SYNCHRONOUS_NONALERT 0x20
+
#define WS_IOCPARM_MASK 0x7f
#define WS_IOC_VOID 0x20000000
#define WS_IOC_OUT 0x40000000