Fixed bug 4003 - HAVE_POLL undefined in SDL_poll.c, making it impossible to use.
authorSam Lantinga <slouken@libsdl.org>
Tue, 19 Dec 2017 11:14:06 -0800
changeset 11783c7577c45151a
parent 11782 98ea6e4c0d68
child 11784 3ec03f35f3b9
Fixed bug 4003 - HAVE_POLL undefined in SDL_poll.c, making it impossible to use.

tomwardio

HAVE_POLL is correctly defined in SDL_config.h when running configure. However, in the only place where it's used, it's undefined at the start of the file.
src/core/unix/SDL_poll.c
     1.1 --- a/src/core/unix/SDL_poll.c	Tue Dec 19 10:57:21 2017 -0800
     1.2 +++ b/src/core/unix/SDL_poll.c	Tue Dec 19 11:14:06 2017 -0800
     1.3 @@ -24,7 +24,6 @@
     1.4  #include "SDL_assert.h"
     1.5  #include "SDL_poll.h"
     1.6  
     1.7 -#undef HAVE_POLL
     1.8  #ifdef HAVE_POLL
     1.9  #include <poll.h>
    1.10  #else