From 7ccb1f19f15c6ef052d06f1da9e92fda9c2c1fe7 Mon Sep 17 00:00:00 2001 From: Michael Eager Date: Mon, 15 Jun 2015 11:26:12 -0700 Subject: [PATCH] GDB -- Define MSG_CMSG_CLOEXEC if undefined * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define. --- gdb/nat/linux-namespaces.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/nat/linux-namespaces.c b/gdb/nat/linux-namespaces.c index f18e40d..3fc4326 100644 --- a/gdb/nat/linux-namespaces.c +++ b/gdb/nat/linux-namespaces.c @@ -47,6 +47,10 @@ setns (int fd, int nstype) } #endif +#ifndef MSG_CMSG_CLOEXEC +#define MSG_CMSG_CLOEXEC 0 +#endif + /* A Linux namespace. */ struct linux_ns -- 2.2.1