Explorar o código

wayland: fixed compiler warning about pipe2().

Ryan C. Gordon %!s(int64=9) %!d(string=hai) anos
pai
achega
2898ada338
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/video/wayland/SDL_waylanddatamanager.c

+ 3 - 1
src/video/wayland/SDL_waylanddatamanager.c

@@ -23,8 +23,10 @@
 
 
 #if SDL_VIDEO_DRIVER_WAYLAND
 #if SDL_VIDEO_DRIVER_WAYLAND
 
 
-#include <unistd.h>
+/* _GNU_SOURCE for pipe2 declaration. */
+#define _GNU_SOURCE
 #include <fcntl.h>
 #include <fcntl.h>
+#include <unistd.h>
 #include <limits.h>
 #include <limits.h>
 #include <signal.h>
 #include <signal.h>