Don't define memfd_create() and USE_MEMFD on FreeBSD.

This commit is contained in:
Gleb Popov 2019-11-10 11:47:01 +04:00 committed by Wim Taymans
parent 9ab4e39704
commit 0a21c61ed0

View file

@ -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.
*