summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2021-06-07 11:12:18 +0100
committerAlexander Richardson <alexander.richardson@cl.cam.ac.uk>2021-09-10 11:35:54 +0000
commit8ec25be6dbd1d5ca4e4b55ce573424a33c79f361 (patch)
treee6d084d140cf8d624f2182d4138e0506bf6a0640 /tests
parentbf98c1a8f2872d3da2be895d9a7f56ada65d43d5 (diff)
downloadwayland-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.c2
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;