mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
oss-fuzz: Try harder to fix build
Apparently memfd_create() is newish in glibc, and oss-fuzz uses Ubuntu 16.04 as base for its docker images, which doens't yet have memfd_create(). But, not to worry, it does have the syscall define and that's all we really need :/
This commit is contained in:
parent
57ca15f126
commit
65570216b4
Notes:
sideshowbarker
2024-07-18 23:01:46 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/65570216b40 Pull-request: https://github.com/SerenityOS/serenity/pull/5026
1 changed files with 10 additions and 0 deletions
|
@ -37,6 +37,16 @@
|
|||
# include <serenity.h>
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) && !defined(MFD_CLOEXEC)
|
||||
# include <linux/memfd.h>
|
||||
# include <sys/syscall.h>
|
||||
|
||||
static int memfd_create(const char* name, unsigned int flags)
|
||||
{
|
||||
return syscall(SYS_memfd_create, name, flags);
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace Core {
|
||||
|
||||
AnonymousBuffer AnonymousBuffer::create_with_size(size_t size)
|
||||
|
|
Loading…
Reference in a new issue