Mesa (master): gbm: Define _DEFAULT_SOURCE to avoid warning

Kristian Høgsberg krh at kemper.freedesktop.org
Sat Jan 17 05:53:03 UTC 2015


Module: Mesa
Branch: master
Commit: 8c6018e9bcdd3067d35fa942f0c5b7e229d837d0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c6018e9bcdd3067d35fa942f0c5b7e229d837d0

Author: Kristian Høgsberg <krh at bitplanet.net>
Date:   Fri Jan 16 21:54:54 2015 -0800

gbm: Define _DEFAULT_SOURCE to avoid warning

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 at bitplanet.net>

---

 src/gbm/main/gbm.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c
index c39cbfa..c046b1a 100644
--- a/src/gbm/main/gbm.c
+++ b/src/gbm/main/gbm.c
@@ -26,6 +26,7 @@
  */
 
 #define _BSD_SOURCE
+#define _DEFAULT_SOURCE
 
 #include <stddef.h>
 #include <stdio.h>




More information about the mesa-commit mailing list