summaryrefslogtreecommitdiffstats
path: root/libmount/python/pylibmount.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmount/python/pylibmount.h')
-rw-r--r--libmount/python/pylibmount.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmount/python/pylibmount.h b/libmount/python/pylibmount.h
index 1a08796dc..7a37014f1 100644
--- a/libmount/python/pylibmount.h
+++ b/libmount/python/pylibmount.h
@@ -94,6 +94,8 @@ extern void Table_AddModuleObject(PyObject *mod);
extern int pymnt_table_parser_errcb(struct libmnt_table *tb, const char *filename, int line);
+#ifdef __linux__
+
/*
* context.c
*/
@@ -108,6 +110,8 @@ typedef struct {
extern PyTypeObject ContextType;
extern void Context_AddModuleObject(PyObject *mod);
+#endif /* __linux__ */
+
/*
* misc
*/