mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-01 07:16:07 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ socket(int domain, int type, int protocol)
|
||||||
}
|
}
|
||||||
|
|
||||||
__attribute__ ((visibility("default"))) int
|
__attribute__ ((visibility("default"))) int
|
||||||
fcntl(int fd, int cmd, ...)
|
(fcntl)(int fd, int cmd, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
int arg;
|
int arg;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue