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:
parent
bf98c1a8f2
commit
8ec25be6db
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user