Fix building on macOS

This commit is contained in:
eientei95 2026-03-05 08:42:14 +13:00
parent 7980af731e
commit 42eac46736

View file

@ -1,6 +1,10 @@
/* File descriptor passing based on
* https://manned.org/man.c2c6968a/cmsg.3 */
#ifndef MSG_CMSG_CLOEXEC
#define MSG_CMSG_CLOEXEC 0
#endif
static ssize_t fufdpass_send(int socket, int fd, const char *buf, size_t buflen) {
union {
char buf[CMSG_SPACE(sizeof(int))];