Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com --- include/winsock2.h | 10 ++++++++++ 1 file changed, 10 insertions(+)
diff --git a/include/winsock2.h b/include/winsock2.h index a2563f4df2..3f41562cbf 100644 --- a/include/winsock2.h +++ b/include/winsock2.h @@ -92,6 +92,16 @@ extern "C" { #define WS_SOCK_SEQPACKET 5 #endif /* USE_WS_PREFIX */
+/* protocol families */ + +#ifndef USE_WS_PREFIX +#ifndef PF_INET6 +#define PF_INET6 AF_INET6 +#endif +#else +#define WS_PF_INET6 AF_INET6 +#endif /* USE_WS_PREFIX */ + /* option flags per socket */
#define FD_MAX_EVENTS 10