From: Tom Tromey Date: Wed, 6 Nov 2013 14:42:51 +0000 (-0700) Subject: stdlib.h is universal too X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0080a2f67157de9feeee6d0bf3c0db28112b167b;p=binutils-gdb.git stdlib.h is universal too stdlib.h is universal as well, so there is no need to check for it. 2013-11-18 Tom Tromey * configure: Rebuild. * configure.ac: Don't check for stdlib.h * defs.h: Include stdlib.h unconditionally. 2013-11-18 Tom Tromey * configure: Rebuild. * configure.ac: Don't check for stdlib.h. * gdbreplay.c: Unconditionally include stdlib.h. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3a6f452b2bc..7d220c6af43 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2013-11-18 Tom Tromey + + * configure: Rebuild. + * configure.ac: Don't check for stdlib.h + * defs.h: Include stdlib.h unconditionally. + 2013-11-18 Tom Tromey * config.in: Rebuild. diff --git a/gdb/configure b/gdb/configure index 1d1a4867db2..9739195e208 100755 --- a/gdb/configure +++ b/gdb/configure @@ -8757,7 +8757,7 @@ fi # elf_hp.h is for HP/UX 64-bit shared library support. for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \ thread_db.h \ - stdlib.h sys/fault.h \ + sys/fault.h \ sys/file.h sys/filio.h sys/ioctl.h sys/param.h \ sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \ sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \ diff --git a/gdb/configure.ac b/gdb/configure.ac index d6b75d61f1e..74d56e4caad 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1076,7 +1076,7 @@ AC_HEADER_STDC # elf_hp.h is for HP/UX 64-bit shared library support. AC_CHECK_HEADERS([nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \ thread_db.h \ - stdlib.h sys/fault.h \ + sys/fault.h \ sys/file.h sys/filio.h sys/ioctl.h sys/param.h \ sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \ sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \ diff --git a/gdb/defs.h b/gdb/defs.h index bb93742522e..1469299cf2e 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -604,9 +604,7 @@ enum gdb_osabi /* From other system libraries */ -#ifdef HAVE_STDLIB_H #include -#endif #ifndef atof diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 6e38797e05c..ee4aa329959 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,9 @@ +2013-11-18 Tom Tromey + + * configure: Rebuild. + * configure.ac: Don't check for stdlib.h. + * gdbreplay.c: Unconditionally include stdlib.h. + 2013-11-18 Tom Tromey * config.in: Rebuild. diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index d75ec1fa29e..fac7fb3b7d9 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure @@ -4714,7 +4714,7 @@ $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cach cd "$ac_popdir" -for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h linux/elf.h stdlib.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h +for ac_header in sgtty.h termio.h termios.h sys/reg.h string.h proc_service.h sys/procfs.h linux/elf.h errno.h fcntl.h signal.h sys/file.h malloc.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h netinet/tcp.h arpa/inet.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac index 87146c1763f..1c6184313fa 100644 --- a/gdb/gdbserver/configure.ac +++ b/gdb/gdbserver/configure.ac @@ -79,7 +79,6 @@ ACX_CONFIGURE_DIR(["../gnulib"], ["build-gnulib-gdbserver"]) AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h string.h dnl proc_service.h sys/procfs.h linux/elf.h dnl - stdlib.h dnl errno.h fcntl.h signal.h sys/file.h malloc.h dnl sys/ioctl.h netinet/in.h sys/socket.h netdb.h dnl netinet/tcp.h arpa/inet.h) diff --git a/gdb/gdbserver/gdbreplay.c b/gdb/gdbserver/gdbreplay.c index 1f823e0addc..c076323f3cb 100644 --- a/gdb/gdbserver/gdbreplay.c +++ b/gdb/gdbserver/gdbreplay.c @@ -35,9 +35,7 @@ #if HAVE_ERRNO_H #include #endif -#ifdef HAVE_STDLIB_H #include -#endif #include #include #ifdef HAVE_NETINET_IN_H