summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSamuel Thibault2010-06-10 02:20:47 +0200
committerKarel Zak2010-06-14 11:10:02 +0200
commit4951f9b38f6c0362f65be164d9031b40170ae7f5 (patch)
treeec7835529451fc748c799ccfb17493f17f7a7d16 /lib
parentmount: don't create loopdev for MS_BIND (diff)
downloadkernel-qcow2-util-linux-4951f9b38f6c0362f65be164d9031b40170ae7f5.tar.gz
kernel-qcow2-util-linux-4951f9b38f6c0362f65be164d9031b40170ae7f5.tar.xz
kernel-qcow2-util-linux-4951f9b38f6c0362f65be164d9031b40170ae7f5.zip
build-sys: minor changes for GNU/Hurd
Here is a patch to fix the build on GNU/Hurd. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.am4
-rw-r--r--lib/ismounted.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index f34bb9286..2a185f343 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -4,16 +4,20 @@ AM_CPPFLAGS += -DTEST_PROGRAM
noinst_PROGRAMS = test_blkdev test_ismounted test_wholedisk test_mangle \
test_strtosize test_tt
+if LINUX
if HAVE_CPU_SET_T
noinst_PROGRAMS += test_cpuset
endif
+endif
test_blkdev_SOURCES = blkdev.c
test_ismounted_SOURCES = ismounted.c
test_wholedisk_SOURCES = wholedisk.c
test_mangle_SOURCES = mangle.c
test_strtosize_SOURCES = strtosize.c
+if LINUX
test_cpuset_SOURCES = cpuset.c
+endif
test_tt_SOURCES = tt.c
if LINUX
diff --git a/lib/ismounted.c b/lib/ismounted.c
index 94fe425c8..fa7e82252 100644
--- a/lib/ismounted.c
+++ b/lib/ismounted.c
@@ -19,6 +19,7 @@
#include "pathnames.h"
#include "ismounted.h"
+#include "c.h"
#ifdef HAVE_MNTENT_H
/*