move <poll.h> inside an appropriate #ifdef, since it does not exist on Windows

This commit is contained in:
Paul Davis 2021-05-06 14:45:56 -06:00
parent 3a7ea6b217
commit ade679f162

View file

@ -18,7 +18,6 @@
* with this program; if not, write to the Free Software Foundation, Inc., * with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/ */
#include <poll.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -35,6 +34,7 @@
#ifdef PLATFORM_WINDOWS #ifdef PLATFORM_WINDOWS
#include <windows.h> #include <windows.h>
#else #else
#include <poll.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>