aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/namespaces.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2023-01-27 16:52:31 +0100
committerEelco Dolstra <edolstra@gmail.com>2023-02-07 22:51:53 +0100
commit4e61877b5c64096fa3ea63bf5ead7e17e1ddef66 (patch)
tree07c57de1ca973d438b0293672615822b60a23e67 /src/libutil/namespaces.hh
parentd834de2894b5addc5a4a8c5088debd56a8517db1 (diff)
More #ifdef
Diffstat (limited to 'src/libutil/namespaces.hh')
-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
+
}