From: Vincent Bernat Date: Sun, 23 Jun 2013 12:26:53 +0000 (+0200) Subject: compat: include config.h in compat.h X-Git-Tag: 0.7.6~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=edc437d94f560e00672a929608c7f39651d85ac6;p=thirdparty%2Flldpd.git 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. --- 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