From 72dd8a159c44162595c7a1a7dc7f52eff693384a Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 27 Jul 2020 19:51:46 +0000 Subject: [PATCH] shm: guard fallback on FreeBSD < 13 as well ../src/shm.c:35:13: warning: unused function 'randname' [-Wunused-function] static void randname(char *buf) ^ --- src/shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shm.c b/src/shm.c index 3c2c20c..15d51d1 100644 --- a/src/shm.c +++ b/src/shm.c @@ -31,7 +31,7 @@ static inline int memfd_create(const char *name, unsigned int flags) { } #endif -#ifndef HAVE_MEMFD +#if !defined(HAVE_MEMFD) && !defined(__FreeBSD__) static void randname(char *buf) { struct timespec ts;