diff options
author | Michael Eager <eager@eagercon.com> | 2015-06-16 07:18:03 -0700 |
---|---|---|
committer | Michael Eager <eager@eagercon.com> | 2015-06-16 07:18:03 -0700 |
commit | 4da680addb9f9c22f24f0294b8b9b9ca52cecd7f (patch) | |
tree | e98928299cb8185ee317c836cb722501723e39a0 /gdb/nat | |
parent | 0a75489fab4f3a1172c0328b9f0767351dbb8744 (diff) | |
download | gdb-4da680addb9f9c22f24f0294b8b9b9ca52cecd7f.zip gdb-4da680addb9f9c22f24f0294b8b9b9ca52cecd7f.tar.gz gdb-4da680addb9f9c22f24f0294b8b9b9ca52cecd7f.tar.bz2 |
GDB Namespaces - Define MSG_CMSG_CLOEXEC if not defined.
2015-06-16 Michael Eager <eager@eagercon.com>
* nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
Diffstat (limited to 'gdb/nat')
-rw-r--r-- | gdb/nat/linux-namespaces.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 |