Fix build error on non-GNU environment
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 1 Jun 2015 12:32:37 +0000 (21:32 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Mon, 1 Jun 2015 12:44:05 +0000 (21:44 +0900)
commit4ab727936660d49a81879e2105d17905dc6437ef
tree02e05257f33219a53ac22886edf29962300d7daf
parentec4dde5948a52c5bf8dcfe3b1c43912ddef2538e
Fix build error on non-GNU environment

'#include <mntent.h>' 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