aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-09-16 20:46:57 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-09-16 20:46:57 +0200
commit7d736e6e6f9418bdcec0d73a3e475c43571adcf5 (patch)
treeca4ab91cb45ecdd121bdb6bcf71837adf90c059b
parenttor 14 sep 2023 09:38:47 CEST (diff)
downloadwiki-public-7d736e6e6f9418bdcec0d73a3e475c43571adcf5.tar.gz
wiki-public-7d736e6e6f9418bdcec0d73a3e475c43571adcf5.tar.xz
lör 16 sep 2023 20:46:57 CEST
-rw-r--r--wiki.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/wiki.c b/wiki.c
index e58b68d..05b6537 100644
--- a/wiki.c
+++ b/wiki.c
@@ -1,5 +1,3 @@
-
-
#include <errno.h>
#include <glob.h>
#include <libgen.h>
@@ -17,10 +15,12 @@
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
+/** Couldn't find any other way to get MAP_ANON on BSD */
#define __BSD_VISIBLE 1
#include <sys/mman.h>
#undef __BSD_VISIBLE
+#if 0
#ifdef __linux__
#include <linux/futex.h>
#include <sys/syscall.h>
@@ -42,6 +42,7 @@ void suspend() {
void wake();
#endif
+#endif
#include <syslog.h>
#include <dirent.h>