From eb0edac83f82516bbbd5a0412bbdf7fd27c687f2 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Mon, 18 Jan 2016 09:45:10 +0000 Subject: 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/gdbserver/configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/gdbserver/configure.ac') diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac index 8476fbd..f15ee1f 100644 --- a/gdb/gdbserver/configure.ac +++ b/gdb/gdbserver/configure.ac @@ -94,6 +94,7 @@ AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h string.h dnl fcntl.h signal.h sys/file.h dnl sys/ioctl.h netinet/in.h sys/socket.h netdb.h dnl netinet/tcp.h arpa/inet.h) +AC_FUNC_FORK AC_CHECK_FUNCS(getauxval pread pwrite pread64 setns) GDB_AC_COMMON -- cgit v1.1