File busybox-mingw-headers-9-compile-fix.patch of Package mingw32-busybox
--- a/win32/poll.h 2021-07-06 22:04:42.664985520 +0000
+++ b/win32/poll.h 2021-07-06 22:05:21.888985805 +0000
@@ -22,6 +22,10 @@
#ifndef _GL_POLL_H
#define _GL_POLL_H
+typedef unsigned long nfds_t;
+
+#ifndef __MINGW32__
+
/* fake a poll(2) environment */
#define POLLIN 0x0001 /* any readable data available */
#define POLLPRI 0x0002 /* OOB/Urgent readable data */
@@ -41,7 +45,6 @@
short revents; /* events found on return */
};
-typedef unsigned long nfds_t;
extern int poll (struct pollfd *pfd, nfds_t nfd, int timeout);
@@ -49,5 +52,6 @@
#if !defined (_POSIX_C_SOURCE) && !defined (_XOPEN_SOURCE)
#define INFTIM (-1)
#endif
+#endif
#endif /* _GL_POLL_H */