aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorRobert Schiele <rschiele@gmail.com>2018-03-20 00:38:48 -0400
committerTheodore Ts'o <tytso@mit.edu>2018-03-20 10:31:09 -0400
commit68192a8f83e008e49ada325f7ec894069d9cc403 (patch)
tree4eb2ad15bacfa697add76fa1a2d1e57592bc52a9 /util
parent627901befd76d7d54508919145940147f2c187fe (diff)
downloadandroid_external_e2fsprogs-68192a8f83e008e49ada325f7ec894069d9cc403.tar.gz
android_external_e2fsprogs-68192a8f83e008e49ada325f7ec894069d9cc403.tar.bz2
android_external_e2fsprogs-68192a8f83e008e49ada325f7ec894069d9cc403.zip
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 <rschiele@gmail.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'util')
-rw-r--r--util/subst.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/subst.c b/util/subst.c
index b37633d2..66d7d9a9 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 <stdio.h>