commit 9ed43c6

Niklas Svensson  ·  2014-04-01 19:58:01 +0000 UTC
parent b2b94e6
_BSD_SOURCE is deprecated since glibc 2.20

https://sourceware.org/glibc/wiki/Release/2.20
You could define both _BSD_SOURCE and
_DEFAULT_SOURCE to be both backward and
forward compatible. However, fixing so
that we are not dependent on _BSD_SOURCE
at all is the best solution.
2 files changed,  +3, -1
M drm.c
+1, -1
1@@ -92,7 +92,7 @@ WLD_PACKAGE_LIBS   ?= $(call pkgconfig,$(WLD_PACKAGES),libs,LIBS)
2 CLEAN_FILES += $(WLD_STATIC_OBJECTS) $(WLD_SHARED_OBJECTS)
3 
4 FINAL_CFLAGS = $(CFLAGS) -fvisibility=hidden -std=c99
5-FINAL_CPPFLAGS = $(CPPFLAGS) -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
6+FINAL_CPPFLAGS = $(CPPFLAGS) -D_XOPEN_SOURCE=700
7 
8 # Warning/error flags
9 FINAL_CFLAGS += -Werror=implicit-function-declaration -Werror=implicit-int \
M drm.c
+2, -0
1@@ -24,6 +24,8 @@
2 #include "drm.h"
3 #include "drm-private.h"
4 
5+#include <sys/sysmacros.h>
6+
7 const static struct drm_driver * drivers[] = {
8 #if WITH_DRM_INTEL
9     &intel_drm_driver,