Change wl_os_dupfd_cloexec minfd to be int
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Thu, 18 Mar 2021 10:46:55 +0000 (10:46 +0000)
committerSimon Ser <contact@emersion.fr>
Thu, 15 Apr 2021 07:34:53 +0000 (07:34 +0000)
commit34306efeb261f8466ad427a61cdae3272b8bae4d
tree1b5addc317c0303dcaea70044f67cfa1ee571e24
parente88193492771f6d3c9f6d9d7b9b2b21b1a04e92d
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>
src/wayland-os.c
src/wayland-os.h