Fix building on macOS
This commit is contained in:
parent
7980af731e
commit
42eac46736
1 changed files with 4 additions and 0 deletions
|
|
@ -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))];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue