diff options
author | Phil Jones <philj56@gmail.com> | 2022-09-08 10:14:00 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-09-08 10:14:00 +0100 |
commit | 7640634cedbfe876b924207ffbbf0d9989df1c22 (patch) | |
tree | a3668eedaa02a0835ce94b818dd61fa281114a05 /src/shm.c | |
parent | ca4451eae114bee59b71a86ccc22602dacf7bb77 (diff) |
Fix unused function warning.
Diffstat (limited to 'src/shm.c')
-rw-r--r-- | src/shm.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |