summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <6yearold@gmail.com>2019-11-10 11:47:01 +0400
committerWim Taymans <wtaymans@redhat.com>2019-11-19 13:41:40 +0100
commit0a21c61ed0f577a3fa4f6ef6af1654bc1400659a (patch)
tree2cd76134a00c1a82cb15e6e4f9746cebc3c17315
parent9ab4e397049b1725b0758f1de497503039e2b689 (diff)
Don't define memfd_create() and USE_MEMFD on FreeBSD.
-rw-r--r--src/pipewire/mem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pipewire/mem.c b/src/pipewire/mem.c
index e81c5944..31e9f6d7 100644
--- a/src/pipewire/mem.c
+++ b/src/pipewire/mem.c
@@ -43,9 +43,11 @@
#define NAME "mempool"
+#ifndef __FreeBSD__
#define USE_MEMFD
+#endif
-#ifndef HAVE_MEMFD_CREATE
+#if defined(USE_MEMFD) && !defined(HAVE_MEMFD_CREATE)
/*
* No glibc wrappers exist for memfd_create(2), so provide our own.
*