xf86-video-intel: src/backlight.c
Chris Wilson
ickle at kemper.freedesktop.org
Wed Jun 18 06:12:00 PDT 2014
src/backlight.c | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 40bd45fb802366aa013b9089848b67a28bf3b1ee
Author: Hans de Goede <hdegoede at redhat.com>
Date: Wed Jun 18 14:11:05 2014 +0100
backlight: Fix compiler error
/usr/include/xorg/os.h around line 579 reads:
extern _X_EXPORT char *
strndup(const char *str, size_t n);
However strndup is already defined by glibc, and this redefine causes a
compile error.
This gets triggered because backlight.c does:
Without first doing:
Causing HAVE_STRNDUP to not be defined.
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
diff --git a/src/backlight.c b/src/backlight.c
index d5b10a0..f0c549e 100644
--- a/src/backlight.c
+++ b/src/backlight.c
@@ -42,6 +42,8 @@
#include <fcntl.h>
#include <unistd.h>
#include <dirent.h>
+
+#include <xorg-server.h>
#include <xf86.h>
#include <pciaccess.h>
More information about the xorg-commit
mailing list