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>
This commit is contained in:
Alex Richardson 2021-06-07 11:12:18 +01:00 committed by Alexander Richardson
parent bf98c1a8f2
commit 8ec25be6db

View File

@ -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;