From 68192a8f83e008e49ada325f7ec894069d9cc403 Mon Sep 17 00:00:00 2001 From: Robert Schiele Date: Tue, 20 Mar 2018 00:38:48 -0400 Subject: [PATCH] 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 --- util/subst.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util/subst.c b/util/subst.c index b37633d..66d7d9a 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 -- 1.8.3.1