From: Daniele Varrazzo Date: Tue, 25 Oct 2022 21:14:58 +0000 (+0200) Subject: fix(c): fix import on Windows X-Git-Tag: 3.1.5~7^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f95317a953cb845b257ff53497bebc8975dacf8a;p=thirdparty%2Fpsycopg.git fix(c): fix import on Windows --- diff --git a/psycopg_c/psycopg_c/_psycopg/waiting.pyx b/psycopg_c/psycopg_c/_psycopg/waiting.pyx index 5eccbd0c1..3b0c1259d 100644 --- a/psycopg_c/psycopg_c/_psycopg/waiting.pyx +++ b/psycopg_c/psycopg_c/_psycopg/waiting.pyx @@ -6,7 +6,11 @@ C implementation of waiting functions cdef extern from *: """ +#ifdef MS_WINDOWS +#include +#else #include +#endif #define SELECT_EV_READ 1 #define SELECT_EV_WRITE 2