From 8c6018e9bcdd3067d35fa942f0c5b7e229d837d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 16 Jan 2015 21:54:54 -0800 Subject: [PATCH] gbm: Define _DEFAULT_SOURCE to avoid warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- 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 c39cbfa7403..c046b1ad7c8 100644 --- a/src/gbm/main/gbm.c +++ b/src/gbm/main/gbm.c @@ -26,6 +26,7 @@ */ #define _BSD_SOURCE +#define _DEFAULT_SOURCE #include #include -- 2.30.2