Fix build issue with nat/linux-namespaces.c
authorGary Benson <gbenson@redhat.com>
Mon, 14 Sep 2015 10:02:06 +0000 (11:02 +0100)
committerGary Benson <gbenson@redhat.com>
Mon, 14 Sep 2015 10:02:06 +0000 (11:02 +0100)
commita8c636cb54328fb9a71dcf27b66a7e7ab5443d88
tree2ca979b817f459be0b498c7ab4f6a79788f4f93f
parent2928b1844dd05c9dd26984ac8480e3d1e446b607
Fix build issue with nat/linux-namespaces.c

This commit fixes a build issue on systems with a prototype for setns
in their header files but no working setns is detected by configure.

gdb/ChangeLog:

PR gdb/18957
* nat/linux-namespaces.c (setns): Rename from this ...
(do_setns): ... to this.  Support calling setns if it exists.
(mnsh_handle_setns): Call do_setns.
gdb/ChangeLog
gdb/nat/linux-namespaces.c