diff options
author | Kristian Høgsberg <[email protected]> | 2015-01-16 21:54:54 -0800 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2015-01-16 21:54:54 -0800 |
commit | 8c6018e9bcdd3067d35fa942f0c5b7e229d837d0 (patch) | |
tree | 2db7e7ad24e9e64eada01d9b0504211f4aeb5288 /src | |
parent | 9075823c17280d36ca2ba2e98ec93fb097801593 (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gbm/main/gbm.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 <stddef.h> #include <stdio.h> |