summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-27 09:02:26 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-01-28 09:12:20 -0800
commit6ce2c46869ced346839eb7e0c3f83170025495c6 (patch)
tree7cacd8b720d7745531003afaf0ab2bb08ac87b0e
parent772470d0e4fef8e0a3d6eaf4c563fa7b1f6d6d19 (diff)
xkbcomp.h: include config.h before any other headers
Ensures flags set by AC_USE_SYSTEM_EXTENSIONS are correctly propogated when including system headers. Closes: #22 xkbcomp from git compile error Fixes: 81e46ca ("Use asprintf() if the platform supports it") Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xkbcomp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xkbcomp.h b/xkbcomp.h
index cbb24f0..d57a7f6 100644
--- a/xkbcomp.h
+++ b/xkbcomp.h
@@ -31,6 +31,10 @@
#define DEBUG_VAR debugFlags
#endif
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <X11/Xlib.h>
#include <X11/XKBlib.h>