Module: Mesa Branch: master Commit: 8c6018e9bcdd3067d35fa942f0c5b7e229d837d0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8c6018e9bcdd3067d35fa942f0c5b7e229d837d0
Author: Kristian Høgsberg <[email protected]> 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 <[email protected]> --- 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> _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
