Commit 70082db8491ee215681fd55c2b19ce5b2c676bdf

Sam Lantinga 2017-12-19T11:14:06

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.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/core/unix/SDL_poll.c b/src/core/unix/SDL_poll.c
index b970a7a..b7f139d 100644
--- a/src/core/unix/SDL_poll.c
+++ b/src/core/unix/SDL_poll.c
@@ -24,7 +24,6 @@
 #include "SDL_assert.h"
 #include "SDL_poll.h"
 
-#undef HAVE_POLL
 #ifdef HAVE_POLL
 #include <poll.h>
 #else