strike most poll.h, use winsock2.h on windows

This commit is contained in:
nick black 2021-07-21 18:42:53 -04:00 committed by nick black
parent 432f9b0317
commit ed99ac670e
5 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,3 @@
#include <poll.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>

View File

@ -1,4 +1,3 @@
#include <poll.h>
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <pthread.h> #include <pthread.h>

View File

@ -1,7 +1,6 @@
#include "input.h" #include "input.h"
#include "internal.h" #include "internal.h"
#include "notcurses/direct.h" #include "notcurses/direct.h"
#include <poll.h>
#include <ncurses.h> // needed for some definitions, see terminfo(3ncurses) #include <ncurses.h> // needed for some definitions, see terminfo(3ncurses)
#include <term.h> #include <term.h>
#include <ctype.h> #include <ctype.h>

View File

@ -8,10 +8,13 @@ extern "C" {
#include "version.h" #include "version.h"
#include "builddef.h" #include "builddef.h"
#if defined(__MINGW64__)
#include <winsock2.h>
#else
#include <poll.h> #include <poll.h>
#endif
#include <term.h> #include <term.h>
#include <time.h> #include <time.h>
#include <poll.h>
#include <stdio.h> #include <stdio.h>
#include <stdint.h> #include <stdint.h>
#include <unistd.h> #include <unistd.h>

View File

@ -4,7 +4,6 @@
#include "egcpool.h" #include "egcpool.h"
#include "internal.h" #include "internal.h"
#include <ncurses.h> // needed for some definitions, see terminfo(3ncurses) #include <ncurses.h> // needed for some definitions, see terminfo(3ncurses)
#include <poll.h>
#include <zlib.h> #include <zlib.h>
#include <time.h> #include <time.h>
#include <term.h> #include <term.h>