]> granicus.if.org Git - curl/commitdiff
select.h: avoid macro redefinition harder
authorDaniel Stenberg <daniel@haxx.se>
Wed, 5 Jul 2017 10:32:09 +0000 (12:32 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 5 Jul 2017 11:28:28 +0000 (13:28 +0200)
... by checking the POLLIN define, as the header file checks don't work
on Windows.

lib/select.h

index 4ed5dd2f8df8082797a77a98596454eca58feb27..4351786c39566798c990dd267440d8f929eb3346 100644 (file)
@@ -7,7 +7,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -36,7 +36,8 @@
 
 #if !defined(HAVE_STRUCT_POLLFD) && \
     !defined(HAVE_SYS_POLL_H) && \
-    !defined(HAVE_POLL_H)
+    !defined(HAVE_POLL_H) && \
+    !defined(POLLIN)
 
 #define POLLIN      0x01
 #define POLLPRI     0x02