Fix gdbserver build failure on targets without fork
authorGary Benson <gbenson@redhat.com>
Mon, 18 Jan 2016 09:45:10 +0000 (09:45 +0000)
committerGary Benson <gbenson@redhat.com>
Mon, 18 Jan 2016 11:39:42 +0000 (11:39 +0000)
commiteb0edac83f82516bbbd5a0412bbdf7fd27c687f2
treee1e7a87000a8f625cf64fa551df6ed2305394313
parent760f6ee894c5f473777c7ff5ebe5a04b25651ce4
Fix gdbserver build failure on targets without fork

This commit fixes nat/linux-namespaces.c to build correctly on
targets without fork.

gdb/ChangeLog:

* nat/linux-namespaces.c (do_fork): New function.
(linux_mntns_get_helper): Use the above.

gdb/gdbserver/ChangeLog:

* configure.ac (AC_FUNC_FORK): New check.
* config.in: Regenerate.
* configure: Likewise.
gdb/ChangeLog
gdb/gdbserver/ChangeLog
gdb/gdbserver/config.in
gdb/gdbserver/configure
gdb/gdbserver/configure.ac
gdb/nat/linux-namespaces.c