summaryrefslogtreecommitdiff
path: root/src/libbacklight.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2013-05-22 18:03:19 +0300
committerKristian Høgsberg <krh@bitplanet.net>2013-06-05 01:16:34 -0400
commitc228e23b055f54d29f2df839cf76a2660917b9f6 (patch)
tree6f810a3fd6061b2dadb8cc654a795530654debf1 /src/libbacklight.c
parent5238b683e20e619cca92eea2691ba7ca947ead84 (diff)
downloadweston-c228e23b055f54d29f2df839cf76a2660917b9f6.tar.gz
configure.ac: Enable AC_USE_SYSTEM_EXTENSIONS
AC_USE_SYSTEM_EXTENSIONS enables _XOPEN_SOURCE, _GNU_SOURCE and similar macros to expose the largest extent of functionality supported by the underlying system. This is required since these macros are often limiting rather than merely additive, e.g. _XOPEN_SOURCE will actually on some systems hide declarations which are not part of the X/Open spec. Since this goes into config.h rather than the command line, ensure all source is consistently including config.h before anything else, including system libraries. This doesn't need to be guarded by a HAVE_CONFIG_H ifdef, which was only ever a hangover from the X.Org modular transition. Signed-off-by: Daniel Stone <daniel@fooishbar.org> [pq: rebased and converted more files]
Diffstat (limited to 'src/libbacklight.c')
-rw-r--r--src/libbacklight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libbacklight.c b/src/libbacklight.c
index 98a20beb..b3acc63f 100644
--- a/src/libbacklight.c
+++ b/src/libbacklight.c
@@ -29,7 +29,7 @@
* Tiago Vignatti <vignatti@freedesktop.org>
*/
-#define _GNU_SOURCE
+#include "config.h"
#include "libbacklight.h"
#include <stdio.h>