commit 9ed43c65430ef0c18aa659e5f389d9cc3f7ec8d4
parent b2b94e61c68019ced8c1addced5daabf9b00053c
Author: Niklas Svensson <nks.gnu@gmail.com>
Date: Tue, 1 Apr 2014 21:58:01 +0200
_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.
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -92,7 +92,7 @@ WLD_PACKAGE_LIBS ?= $(call pkgconfig,$(WLD_PACKAGES),libs,LIBS)
CLEAN_FILES += $(WLD_STATIC_OBJECTS) $(WLD_SHARED_OBJECTS)
FINAL_CFLAGS = $(CFLAGS) -fvisibility=hidden -std=c99
-FINAL_CPPFLAGS = $(CPPFLAGS) -D_XOPEN_SOURCE=700 -D_BSD_SOURCE
+FINAL_CPPFLAGS = $(CPPFLAGS) -D_XOPEN_SOURCE=700
# Warning/error flags
FINAL_CFLAGS += -Werror=implicit-function-declaration -Werror=implicit-int \
diff --git a/drm.c b/drm.c
@@ -24,6 +24,8 @@
#include "drm.h"
#include "drm-private.h"
+#include <sys/sysmacros.h>
+
const static struct drm_driver * drivers[] = {
#if WITH_DRM_INTEL
&intel_drm_driver,