Commit 2898ada3389bdf1a68da1cc975542b466b3cb045

Ryan C. Gordon 2016-11-10T12:07:34

wayland: fixed compiler warning about pipe2().

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/video/wayland/SDL_waylanddatamanager.c b/src/video/wayland/SDL_waylanddatamanager.c
index 8094947..afcec1a 100644
--- a/src/video/wayland/SDL_waylanddatamanager.c
+++ b/src/video/wayland/SDL_waylanddatamanager.c
@@ -23,8 +23,10 @@
 
 #if SDL_VIDEO_DRIVER_WAYLAND
 
-#include <unistd.h>
+/* _GNU_SOURCE for pipe2 declaration. */
+#define _GNU_SOURCE
 #include <fcntl.h>
+#include <unistd.h>
 #include <limits.h>
 #include <signal.h>