From f95317a953cb845b257ff53497bebc8975dacf8a Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Tue, 25 Oct 2022 23:14:58 +0200 Subject: [PATCH] fix(c): fix import on Windows --- psycopg_c/psycopg_c/_psycopg/waiting.pyx | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.2