From 4da680addb9f9c22f24f0294b8b9b9ca52cecd7f Mon Sep 17 00:00:00 2001 From: Michael Eager Date: Tue, 16 Jun 2015 07:18:03 -0700 Subject: GDB Namespaces - Define MSG_CMSG_CLOEXEC if not defined. 2015-06-16 Michael Eager * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined. --- gdb/nat/linux-namespaces.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/nat') diff --git a/gdb/nat/linux-namespaces.c b/gdb/nat/linux-namespaces.c index f18e40d..a7a3e4d 100644 --- a/gdb/nat/linux-namespaces.c +++ b/gdb/nat/linux-namespaces.c @@ -47,6 +47,12 @@ setns (int fd, int nstype) } #endif +/* Handle systems without MSG_CMSG_CLOEXEC. */ + +#ifndef MSG_CMSG_CLOEXEC +#define MSG_CMSG_CLOEXEC 0 +#endif + /* A Linux namespace. */ struct linux_ns -- cgit v1.1