summaryrefslogtreecommitdiff
path: root/pfinet/glue-include/linux
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-07-25 22:22:53 +0000
committerMark Kettenis <kettenis@gnu.org>2001-07-25 22:22:53 +0000
commit2c661dae2c1e02c1c920b8e4c89b27ec0604384a (patch)
tree30399e1760558cb36047a29de0bc77ecb3927168 /pfinet/glue-include/linux
parentef8fe1483875058b4a92c01b4c3389a573b28998 (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/linux')
-rw-r--r--pfinet/glue-include/linux/socket.h10
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