Commits

Stanisław Halik committed 959fd3e

fix mingw build

tcp_keepalive exists on MinGW64, leading to redefinition.

MinGW32 doesn't compile anyway due to broken headers,
and support for it ought to be dropped anyway.

Comments (0)

Files changed (1)

rpython/rlib/_rsocket_rffi.py

             '#define RCVALL_ON              1',
             '#define RCVALL_SOCKETLEVELONLY 2',
             '''\
+            #ifndef __MINGW32__
             struct tcp_keepalive {
                 u_long  onoff;
                 u_long  keepalivetime;
                 u_long  keepaliveinterval;
-            };'''
+            };
+            #endif
+            '''
             ])
     HEADER = '\n'.join(header_lines)
     COND_HEADER = ''