stdlib.h is universal too
authorTom Tromey <tromey@redhat.com>
Wed, 6 Nov 2013 14:42:51 +0000 (07:42 -0700)
committerTom Tromey <tromey@redhat.com>
Mon, 18 Nov 2013 20:29:02 +0000 (13:29 -0700)
stdlib.h is universal as well, so there is no need to check for it.

2013-11-18  Tom Tromey  <tromey@redhat.com>

* configure: Rebuild.
* configure.ac: Don't check for stdlib.h
* defs.h: Include stdlib.h unconditionally.

2013-11-18  Tom Tromey  <tromey@redhat.com>

* configure: Rebuild.
* configure.ac: Don't check for stdlib.h.
* gdbreplay.c: Unconditionally include stdlib.h.

gdb/ChangeLog
gdb/configure
gdb/configure.ac
gdb/defs.h
gdb/gdbserver/ChangeLog
gdb/gdbserver/configure
gdb/gdbserver/configure.ac
gdb/gdbserver/gdbreplay.c

index 3a6f452b2bc57271e6cfc4763b98e3e90a0a3c07..7d220c6af434ab039e555c12249e3ea25c6d682e 100644 (file)
@@ -1,3 +1,9 @@
+2013-11-18  Tom Tromey  <tromey@redhat.com>
+
+       * configure: Rebuild.
+       * configure.ac: Don't check for stdlib.h
+       * defs.h: Include stdlib.h unconditionally.
+
 2013-11-18  Tom Tromey  <tromey@redhat.com>
 
        * config.in: Rebuild.
index 1d1a4867db2eb473792f7632ef165a92cccba95c..9739195e20870113cf3c8380689e55abb7151603 100755 (executable)
@@ -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 \
index d6b75d61f1edc7d98109213ebfa4e6ff49cc077d..74d56e4caad2ff0e774207f9253662bcaf0d234a 100644 (file)
@@ -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 \
index bb93742522eb503003fb20ac11455f8738eddf10..1469299cf2e39e866f858efbc2f2833ac27c1210 100644 (file)
@@ -604,9 +604,7 @@ enum gdb_osabi
 
 /* From other system libraries */
 
-#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
-#endif
 
 
 #ifndef atof
index 6e38797e05c09b51ae6920c421fdac5b68207f6a..ee4aa3299595aeae7c409e01c79456d6cdb5dd49 100644 (file)
@@ -1,3 +1,9 @@
+2013-11-18  Tom Tromey  <tromey@redhat.com>
+
+       * configure: Rebuild.
+       * configure.ac: Don't check for stdlib.h.
+       * gdbreplay.c: Unconditionally include stdlib.h.
+
 2013-11-18  Tom Tromey  <tromey@redhat.com>
 
        * config.in: Rebuild.
index d75ec1fa29e0a68f7a4e6f9a18b0dbe833875c41..fac7fb3b7d9a47fdb819cce0d30289518c46e713 100755 (executable)
@@ -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"
index 87146c1763fe832caa13d9f1aa397300743d3e18..1c6184313faee75cd87eca183bade1d523dca42f 100644 (file)
@@ -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)
index 1f823e0addc59eee8c621d158d189ea8ddeb9e6c..c076323f3cb7fed8b9b7136ba321757427ae9fef 100644 (file)
@@ -35,9 +35,7 @@
 #if HAVE_ERRNO_H
 #include <errno.h>
 #endif
-#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
-#endif
 #include <string.h>
 #include <unistd.h>
 #ifdef HAVE_NETINET_IN_H