gbm: Define _DEFAULT_SOURCE to avoid warning
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 17 Jan 2015 05:54:54 +0000 (21:54 -0800)
committerKristian Høgsberg <krh@bitplanet.net>
Sat, 17 Jan 2015 05:54:54 +0000 (21:54 -0800)
glibc 2.19 introduced _DEFUAULT_SOURCE as a replacement for _BSD_SOURCE,
and deprecates _BSD_SOURCE with an annoying warning.  Defining both is
how you're supposed to transition so let's do that.  It gets rid of the
warning and we can figure out when/if we can drop _BSD_SOURCE later.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
src/gbm/main/gbm.c

index c39cbfa74039e3f9d0a97f2898b63b8e1898cffe..c046b1ad7c8a28fd564b635ebfe01a8adeaecb6d 100644 (file)
@@ -26,6 +26,7 @@
  */
 
 #define _BSD_SOURCE
+#define _DEFAULT_SOURCE
 
 #include <stddef.h>
 #include <stdio.h>