Whamcloud - gitweb
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)
commit68192a8f83e008e49ada325f7ec894069d9cc403
tree4eb2ad15bacfa697add76fa1a2d1e57592bc52a9
parent627901befd76d7d54508919145940147f2c187fe
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>
util/subst.c