aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libutil/namespaces.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/namespaces.hh b/src/libutil/namespaces.hh
index ad7bb559e..34e54d5ad 100644
--- a/src/libutil/namespaces.hh
+++ b/src/libutil/namespaces.hh
@@ -2,10 +2,14 @@
namespace nix {
+#if __linux__
+
bool userNamespacesSupported();
bool mountNamespacesSupported();
bool pidNamespacesSupported();
+#endif
+
}