summaryrefslogtreecommitdiff
path: root/src/xcb_util.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-08-24 23:32:32 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-08-25 12:34:24 -0700
commitb52790e8ed4bb077eabdeca803935d2910558acc (patch)
tree9abb4658bc8ba9e121f24d10d029f2fac89c4348 /src/xcb_util.c
parented93a6a2a8e23f12380709de6e04b2d833df7e71 (diff)
Always include "config.h" at the start of all C source files.
Allows configure to set defines such as _POSIX_SOURCE in config.h that affect functions exposed by system headers and get consistent results across all the source files. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/xcb_util.c')
-rw-r--r--src/xcb_util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xcb_util.c b/src/xcb_util.c
index 45f66cb..e480d75 100644
--- a/src/xcb_util.c
+++ b/src/xcb_util.c
@@ -25,6 +25,10 @@
/* Utility functions implementable using only public APIs. */
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <assert.h>
#include <sys/types.h>
#include <limits.h>
@@ -51,7 +55,6 @@
#include "xcbext.h"
#include "xcbint.h"
-/* must be after "xcbint.h" to get autoconf #defines */
#if defined(HAVE_TSOL_LABEL_H) && defined(HAVE_IS_SYSTEM_LABELED)
# include <tsol/label.h>
# include <sys/stat.h>