1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:48:11 +00:00

LibCore: Try to fix fuzzer build

This might fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=29675
See also `man memfd_create`.
This commit is contained in:
Nico Weber 2021-01-20 11:03:34 -05:00 committed by Andreas Kling
parent 98637bd549
commit c5709c0aed

View file

@ -24,6 +24,10 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#if defined(__linux__) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE // For memfd_create, MFD_CLOEXEC
#endif
#include <LibCore/AnonymousBuffer.h>
#include <LibIPC/Decoder.h>
#include <LibIPC/Encoder.h>