]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
fix(c): fix import on Windows
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 25 Oct 2022 21:14:58 +0000 (23:14 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 11 Dec 2022 20:04:31 +0000 (20:04 +0000)
psycopg_c/psycopg_c/_psycopg/waiting.pyx

index 5eccbd0c1a327e01984d69f823b43666a63c42a1..3b0c1259d160d9e8fa0fafa428e1322a7489adc7 100644 (file)
@@ -6,7 +6,11 @@ C implementation of waiting functions
 
 cdef extern from *:
     """
+#ifdef MS_WINDOWS
+#include <winsock2.h>
+#else
 #include <sys/select.h>
+#endif
 
 #define SELECT_EV_READ 1
 #define SELECT_EV_WRITE 2