commit bcd34f4

default  ·  2025-01-05 13:00:13 +0000 UTC
parent 9c0dbd7
More sandbox compilation tweaks under Alpine Linux.
2 files changed,  +3, -1
+1, -1
1@@ -76,7 +76,7 @@ If it still gives compilation errors (because your system does not implement the
2 make CFLAGS=-DWITHOUT_SHM
3 ```
4 
5-If compilation fails on Linux with the message `no landlock on kernels older than...` or complaining about not finding the `linux/landlock.h` header, then your system lacks support for Linux Landlock sandboxing (new in snac v2.68); to disable it, run
6+If compilation fails on Linux with the message `no landlock on kernels older than...` or complaining about not being able to compile `sandbox.c`, then your system lacks support for Linux Landlock sandboxing (new in snac v2.68); to disable it, run
7 
8 ```sh
9 make CFLAGS=-DWITHOUT_SANDBOX
+2, -0
 1@@ -3,11 +3,13 @@
 2 #include "snac.h"
 3 
 4 #ifdef __linux__
 5+#ifndef WITHOUT_SANDBOX
 6 #include <linux/version.h>
 7 
 8 #if LINUX_VERSION_CODE < KERNEL_VERSION(5, 13, 0)
 9 #define WITHOUT_SANDBOX
10 #endif
11+#endif
12 #endif /* __linux__ */
13 
14