From 6ce2c46869ced346839eb7e0c3f83170025495c6 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 27 Jan 2023 09:02:26 -0800 Subject: 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 --- xkbcomp.h | 4 ++++ 1 file changed, 4 insertions(+) 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 #include -- cgit v1.2.3