From: Tomohiro Kusumi Date: Mon, 1 Jun 2015 12:32:37 +0000 (+0900) Subject: Fix build error on non-GNU environment X-Git-Tag: fio-2.2.9~24 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=4ab727936660d49a81879e2105d17905dc6437ef 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 --- 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"