[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Vinson Lee <vlee@xxxxxxxxxxx>

This patch fixes this build error with glibc before 2.7.

  CC    syscalls/recvfrom.o
syscalls/recvfrom.c:28: error: ‘MSG_CMSG_CLOEXEC’ undeclared here (not in a function)
make: *** [syscalls/recvfrom.o] Error 1

Signed-off-by: Vinson Lee <vlee@xxxxxxxxxxx>
---
 include/compat.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/compat.h b/include/compat.h
index ad1dcb5..7e73131 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -140,6 +140,10 @@ enum {
 #define MSG_WAITFORONE	0x10000
 #endif
 
+#ifndef MSG_CMSG_CLOEXEC
+#define MSG_CMSG_CLOEXEC	0x40000000
+#endif
+
 /* linux/socket.h */
 #ifndef MSG_PROBE
 #define MSG_PROBE 0x10
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux