diff options
author | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2021-06-07 11:12:18 +0100 |
---|---|---|
committer | Alexander Richardson <alexander.richardson@cl.cam.ac.uk> | 2021-09-10 11:35:54 +0000 |
commit | 8ec25be6dbd1d5ca4e4b55ce573424a33c79f361 (patch) | |
tree | e6d084d140cf8d624f2182d4138e0506bf6a0640 /tests | |
parent | bf98c1a8f2872d3da2be895d9a7f56ada65d43d5 (diff) | |
download | wayland-8ec25be6dbd1d5ca4e4b55ce573424a33c79f361.tar.gz |
os-wrappers-test: Handle fcntl() being declared as a macro
On some systems (e.g. FreeBSD with the latest epoll-shim), fcntl is
declared as a macro instead of a function. Wrap the definition here in
parantheses to avoid function-macro expansion.
Signed-off-by: Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/os-wrappers-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/os-wrappers-test.c b/tests/os-wrappers-test.c index 0fd7853..51eaa29 100644 --- a/tests/os-wrappers-test.c +++ b/tests/os-wrappers-test.c @@ -100,7 +100,7 @@ socket(int domain, int type, int protocol) } __attribute__ ((visibility("default"))) int -fcntl(int fd, int cmd, ...) +(fcntl)(int fd, int cmd, ...) { va_list ap; int arg; |