diff options
author | Mark Kettenis <kettenis@gnu.org> | 2001-07-25 22:22:53 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2001-07-25 22:22:53 +0000 |
commit | 2c661dae2c1e02c1c920b8e4c89b27ec0604384a (patch) | |
tree | 30399e1760558cb36047a29de0bc77ecb3927168 /pfinet/glue-include | |
parent | ef8fe1483875058b4a92c01b4c3389a573b28998 (diff) |
* glue-include/linux/socket.h (SOMAXCONN): Only define if it
wasn't already.
(msg_control, msg_controllen, struct cmsghdr, cmsg_len, cmsg_type,
cmsg_level, CMSG_FIRSTHDR, CMSG_NXTHDR, CMSG_DATA, CMSG_LEN): Only
define if CMSG_DATA wasn't already defined.
Diffstat (limited to 'pfinet/glue-include')
-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 |