From edc437d94f560e00672a929608c7f39651d85ac6 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 23 Jun 2013 14:26:53 +0200 Subject: [PATCH] compat: include config.h in compat.h Without this inclusion, no `HAVE_*` macro was defined. This was triggered because with some libc, `strndup()` is defined by a macro and therefore cannot be redefined as a function. --- src/compat/compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/compat/compat.h b/src/compat/compat.h index 643a7828..cf623fca 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -33,6 +33,10 @@ #ifndef _COMPAT_H #define _COMPAT_H +#if HAVE_CONFIG_H +# include +#endif + #include #include #ifdef HAVE_LIBBSD -- 2.39.5