]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tidy-up: delete unused HAVE_STRUCT_POLLFD
authorViktor Szakats <commit@vsz.me>
Wed, 12 Oct 2022 14:19:09 +0000 (14:19 +0000)
committerViktor Szakats <commit@vsz.me>
Wed, 12 Oct 2022 14:19:09 +0000 (14:19 +0000)
It was only defined in `lib/config-win32.h`, when building for Vista.

It was only used in `select.h`, in a condition that also included a
check for `POLLIN` which is a superior choice for this detection and
which was already used by cmake and autotools builds.

Delete both instances of this macro.

Closes #9707

lib/config-win32.h
lib/select.h

index ea05efff1ae2f65bf22aed4ff492902ece16b293..2f7c41644bf76332a1839b3905dbcdf002b21445 100644 (file)
@@ -511,11 +511,6 @@ Vista
 /* Define if struct sockaddr_in6 has the sin6_scope_id member. */
 #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
 
-#if defined(HAVE_WINSOCK2_H) && defined(_WIN32_WINNT) && \
-    (_WIN32_WINNT >= 0x0600)
-#define HAVE_STRUCT_POLLFD 1
-#endif
-
 /* ---------------------------------------------------------------- */
 /*                        LARGE FILE SUPPORT                        */
 /* ---------------------------------------------------------------- */
index eaff7d9b1ca1631995a023b3071053e8e995b3e7..f2cf8bbd9fae274931bc08a34befc28eaba99c74 100644 (file)
@@ -36,8 +36,7 @@
  * Definition of pollfd struct and constants for platforms lacking them.
  */
 
-#if !defined(HAVE_STRUCT_POLLFD) && \
-    !defined(HAVE_SYS_POLL_H) && \
+#if !defined(HAVE_SYS_POLL_H) && \
     !defined(HAVE_POLL_H) && \
     !defined(POLLIN)