mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-29 07:58:19 -04:00
Change wl_os_dupfd_cloexec minfd to be int
The fcntl() argument is defined to be an int and not a long. This does not matter on most architectures since the value is passed in registers, but it causes issues on big-endian architectures that pass variadic arguments on the stack. Signed-off-by: Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> Reviewed-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
e881934927
commit
34306efeb2
2 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ wl_os_socket_cloexec(int domain, int type, int protocol)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
wl_os_dupfd_cloexec(int fd, long minfd)
|
wl_os_dupfd_cloexec(int fd, int minfd)
|
||||||
{
|
{
|
||||||
int newfd;
|
int newfd;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ int
|
||||||
wl_os_socket_cloexec(int domain, int type, int protocol);
|
wl_os_socket_cloexec(int domain, int type, int protocol);
|
||||||
|
|
||||||
int
|
int
|
||||||
wl_os_dupfd_cloexec(int fd, long minfd);
|
wl_os_dupfd_cloexec(int fd, int minfd);
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
wl_os_recvmsg_cloexec(int sockfd, struct msghdr *msg, int flags);
|
wl_os_recvmsg_cloexec(int sockfd, struct msghdr *msg, int flags);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue