From b58814530cd14ae2bd754fa77f9c536b1a2b9a06 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Thu, 25 Feb 2016 17:56:05 +0100 Subject: [PATCH] libconfig quirks --- misc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/misc.c b/misc.c index de499a7..890fda6 100644 --- a/misc.c +++ b/misc.c @@ -101,7 +101,13 @@ void get_defaults(char *filename, struct udata *ud) { config_t cfg, *cf; const char *value; +#if LIBCONFIG_VER_MAJOR == 1 +# if LIBCONFIG_VER_MINOR >= 5 int ival; +# endif +# else + long ival; +#endif if (access(filename, R_OK) == -1) return;