bsd compat

master
leitner 21 years ago
parent a6a00edd75
commit a23757a317

@ -6,7 +6,9 @@
union fdmsg { union fdmsg {
struct cmsghdr h; struct cmsghdr h;
char buf[CMSG_SPACE(sizeof(int))]; /* on NetBSD, CMSG_SPACE is not constant */
/* char buf[CMSG_SPACE(sizeof(int))]; */
char buf[1000];
}; };
int io_passfd(int64 sock,int64 fd) { int io_passfd(int64 sock,int64 fd) {

@ -1,3 +1,4 @@
#include <stddef.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/uio.h> #include <sys/uio.h>
@ -6,7 +7,7 @@
union fdmsg { union fdmsg {
struct cmsghdr h; struct cmsghdr h;
char buf[CMSG_SPACE(sizeof(int))]; char buf[1000];
}; };
int64 io_receivefd(int64 sock) { int64 io_receivefd(int64 sock) {

Loading…
Cancel
Save