diff options
| author | Jan Beich <jbeich@FreeBSD.org> | 2021-01-19 14:20:55 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-23 08:52:40 +0000 |
| commit | db9dc7e90853208a28d48c8b52f4251118005007 (patch) | |
| tree | aca71fa6aab439dc10c4db8bc899a8f3132e12e9 /debug.h | |
| parent | shm: disable fallocate optimization if not supported (diff) | |
shm: unbreak build without memfd_create
New FreeBSD versions have memfd_create but other BSDs don't.
pgo/pgo.c:260:22: error: implicit declaration of function 'memfd_create' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
int mem_fd = memfd_create("foot-pgo-ptmx", MFD_CLOEXEC);
^
pgo/pgo.c:260:52: error: use of undeclared identifier 'MFD_CLOEXEC'
int mem_fd = memfd_create("foot-pgo-ptmx", MFD_CLOEXEC);
^
shm.c:13:10: fatal error: 'linux/mman.h' file not found
#include <linux/mman.h>
^~~~~~~~~~~~~~
shm.c:277:15: error: implicit declaration of function 'memfd_create' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
pool_fd = memfd_create("foot-wayland-shm-buffer-pool", MFD_CLOEXEC | MFD_ALLOW_SEALING);
^
shm.c:277:60: error: use of undeclared identifier 'MFD_CLOEXEC'
pool_fd = memfd_create("foot-wayland-shm-buffer-pool", MFD_CLOEXEC | MFD_ALLOW_SEALING);
^
shm.c:277:74: error: use of undeclared identifier 'MFD_ALLOW_SEALING'
pool_fd = memfd_create("foot-wayland-shm-buffer-pool", MFD_CLOEXEC | MFD_ALLOW_SEALING);
^
shm.c:339:15: error: use of undeclared identifier 'F_SEAL_GROW'
F_SEAL_GROW | F_SEAL_SHRINK | /*F_SEAL_FUTURE_WRITE |*/ F_SEAL_SEAL) < 0)
^
shm.c:339:29: error: use of undeclared identifier 'F_SEAL_SHRINK'
F_SEAL_GROW | F_SEAL_SHRINK | /*F_SEAL_FUTURE_WRITE |*/ F_SEAL_SEAL) < 0)
^
shm.c:339:71: error: use of undeclared identifier 'F_SEAL_SEAL'
F_SEAL_GROW | F_SEAL_SHRINK | /*F_SEAL_FUTURE_WRITE |*/ F_SEAL_SEAL) < 0)
^
shm.c:338:24: error: use of undeclared identifier 'F_ADD_SEALS'
if (fcntl(pool_fd, F_ADD_SEALS,
^
Diffstat (limited to 'debug.h')
0 files changed, 0 insertions, 0 deletions
