]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
util: allow subst to build in cross build environemnt
authorRobert Schiele <rschiele@gmail.com>
Tue, 20 Mar 2018 04:38:48 +0000 (00:38 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 20 Mar 2018 14:31:09 +0000 (10:31 -0400)
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 <rschiele@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
util/subst.c

index b37633d2e916eab293a98d56217518b0edb5c859..66d7d9a9e1096b727502fb6a4b39ec6974c0faaa 100644 (file)
@@ -8,6 +8,7 @@
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #else
+#define HAVE_SYS_STAT_H
 #define HAVE_SYS_TIME_H
 #endif
 #include <stdio.h>