SDL-1.2: Reenable _GNU_SOURCE define for Linux. Apparently it broke things. SDL-1.2
authorRyan C. Gordon <icculus@icculus.org>
Mon, 23 Mar 2015 20:11:18 -0400
branchSDL-1.2
changeset 9426 c238763e1228
parent 9425 d2bc9b3760fb
child 9446 d7de8d4232c4
SDL-1.2: Reenable _GNU_SOURCE define for Linux. Apparently it broke things.
configure.in
--- a/configure.in	Mon Mar 23 20:10:08 2015 -0400
+++ b/configure.in	Mon Mar 23 20:11:18 2015 -0400
@@ -1,6 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 AC_INIT(README)
 AC_CONFIG_HEADER(include/SDL_config.h)
+AC_GNU_SOURCE
 AC_CONFIG_AUX_DIRS($srcdir/build-scripts)
 
 dnl Set various version strings - taken gratefully from the GTk sources
@@ -77,7 +78,7 @@
         BASE_LDFLAGS="-mno-cygwin"
         ;;
     *)
-        BASE_CFLAGS=""
+        BASE_CFLAGS="-D_GNU_SOURCE=1"
         BASE_LDFLAGS=""
         ;;
 esac