From: Robert Schiele Date: Tue, 20 Mar 2018 04:38:48 +0000 (-0400) Subject: util: allow subst to build in cross build environemnt X-Git-Tag: v1.44.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68192a8f83e008e49ada325f7ec894069d9cc403;p=thirdparty%2Fe2fsprogs.git util: allow subst to build in cross build environemnt In a cross build environment we don't get definition of HAVE_SYS_STAT_H from config.h, therefore we need to define it locally in that case similar to HAVE_SYS_TIME_H. Fixes: 7fd537401270 ("misc: add missing declarations on maint") Signed-off-by: Robert Schiele Signed-off-by: Theodore Ts'o --- diff --git a/util/subst.c b/util/subst.c index b37633d2e..66d7d9a9e 100644 --- a/util/subst.c +++ b/util/subst.c @@ -8,6 +8,7 @@ #ifdef HAVE_CONFIG_H #include "config.h" #else +#define HAVE_SYS_STAT_H #define HAVE_SYS_TIME_H #endif #include