diff options
Diffstat (limited to 'pfinet/glue-include/linux')
-rw-r--r-- | pfinet/glue-include/linux/socket.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pfinet/glue-include/linux/socket.h b/pfinet/glue-include/linux/socket.h index 8d5774de..bf37f490 100644 --- a/pfinet/glue-include/linux/socket.h +++ b/pfinet/glue-include/linux/socket.h @@ -48,9 +48,11 @@ #define SO_BSDCOMPAT 192 /* Maximum queue length specifiable by listen. */ +#ifndef SOMAXCONN #define SOMAXCONN 128 +#endif -/* XXX */ +#ifndef CMSG_DATA #define msg_control msg_accrights #define msg_controllen msg_accrightslen struct cmsghdr { int cmsg_garbage; }; @@ -65,7 +67,11 @@ put_cmsg(struct msghdr *msg, int level, int type, int len, void *data) #define CMSG_DATA(cmsg) (0) #define CMSG_ALIGN(size) (0) #define CMSG_LEN(size) (0) - +#else +static inline int +put_cmsg(struct msghdr *msg, int level, int type, int len, void *data) +{ return 0; } +#endif #define MSG_NOSIGNAL 0 #define MSG_ERRQUEUE 0 |