summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/shm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shm.c b/src/shm.c
index 9e0833f..9658a75 100644
--- a/src/shm.c
+++ b/src/shm.c
@@ -5,6 +5,8 @@
#include <unistd.h>
#include "shm.h"
+/* These two functions aren't used on linux. */
+#ifndef __linux__
static void randname(char *buf)
{
struct timespec ts;
@@ -31,6 +33,7 @@ static int create_shm_file(void)
} while (retries > 0 && errno == EEXIST);
return -1;
}
+#endif
int shm_allocate_file(size_t size)
{