From 4ab727936660d49a81879e2105d17905dc6437ef Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Mon, 1 Jun 2015 21:32:37 +0900 Subject: [PATCH] Fix build error on non-GNU environment '#include ' needs to be inside '#ifdef CONFIG_GETMNTENT' and that was probably the intention of the commit aae599ba. e.g. BSDs are likely to hit following compile error. -- lib/mountcheck.c:3:20: fatal error: mntent.h: No such file or directory compilation terminated. Makefile:275: recipe for target 'lib/mountcheck.o' failed gmake: *** [lib/mountcheck.o] Error 1 --- lib/mountcheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mountcheck.c b/lib/mountcheck.c index dea27462..bb01f69f 100644 --- a/lib/mountcheck.c +++ b/lib/mountcheck.c @@ -1,8 +1,8 @@ #include #include -#include #ifdef CONFIG_GETMNTENT +#include #define MTAB "/etc/mtab" -- 2.25.1