summaryrefslogtreecommitdiffstats
path: root/libmount/python/pylibmount.c
diff options
context:
space:
mode:
authorRuediger Meier2016-03-21 14:04:42 +0100
committerKarel Zak2016-03-21 21:03:41 +0100
commita5b3be92c6d5fb5335c6de57bf1ba16e9699a1de (patch)
tree232a3b4990e3ca58753231a65728d536d6b3b498 /libmount/python/pylibmount.c
parentbuild-sys: some libmount test progs are Linux only (diff)
downloadkernel-qcow2-util-linux-a5b3be92c6d5fb5335c6de57bf1ba16e9699a1de.tar.gz
kernel-qcow2-util-linux-a5b3be92c6d5fb5335c6de57bf1ba16e9699a1de.tar.xz
kernel-qcow2-util-linux-a5b3be92c6d5fb5335c6de57bf1ba16e9699a1de.zip
build-sys: pylibmount, mount context is Linux only
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'libmount/python/pylibmount.c')
-rw-r--r--libmount/python/pylibmount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmount/python/pylibmount.c b/libmount/python/pylibmount.c
index c538bb543..54d7dfa70 100644
--- a/libmount/python/pylibmount.c
+++ b/libmount/python/pylibmount.c
@@ -229,7 +229,9 @@ PyMODINIT_FUNC initpylibmount(void)
FS_AddModuleObject(m);
Table_AddModuleObject(m);
+#ifdef __linux__
Context_AddModuleObject(m);
+#endif
/*
* mount(8) userspace options masks (MNT_MAP_USERSPACE map)