Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tromey@redhat.com>
Subject: [PATCH v2 09/16] stdlib.h is universal too
Date: Wed, 06 Nov 2013 17:14:00 -0000	[thread overview]
Message-ID: <1383757800-6332-10-git-send-email-tromey@redhat.com> (raw)
In-Reply-To: <1383757800-6332-1-git-send-email-tromey@redhat.com>

stdlib.h is universal as well, so there is no need to check for it.

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

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

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

	* configure: Rebuild.
	* configure.ac: Don't check for stdlib.h.
	* gdbreplay.c: Unconditionally include stdlib.h.
---
 gdb/ChangeLog              | 6 ++++++
 gdb/configure              | 2 +-
 gdb/configure.ac           | 2 +-
 gdb/defs.h                 | 2 --
 gdb/gdbserver/ChangeLog    | 6 ++++++
 gdb/gdbserver/configure    | 2 +-
 gdb/gdbserver/configure.ac | 1 -
 gdb/gdbserver/gdbreplay.c  | 2 --
 8 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/gdb/configure b/gdb/configure
index 844cfe0..90e7cfe 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 e48e4fd..7ed7cfa 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 bb93742..1469299 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 <stdlib.h>
-#endif
 
 
 #ifndef atof
diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure
index d75ec1f..fac7fb3 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 87146c1..1c61843 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 1f823e0..c076323 100644
--- a/gdb/gdbserver/gdbreplay.c
+++ b/gdb/gdbserver/gdbreplay.c
@@ -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
-- 
1.8.1.4


  parent reply	other threads:[~2013-11-06 17:13 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-06 17:11 [PATCH v2 00/16] use gnulib more heavily Tom Tromey
2013-11-06 17:11 ` [PATCH v2 01/16] link gdbreplay against gnulib Tom Tromey
2013-11-06 17:12 ` [PATCH v2 04/16] remove gdb_string.h Tom Tromey
2013-11-06 17:12 ` [PATCH v2 02/16] change how list of modules is computed Tom Tromey
2013-11-18 18:23   ` Pedro Alves
2013-11-18 18:52     ` Tom Tromey
2013-11-06 17:13 ` [PATCH v2 03/16] import strstr and strerror modules Tom Tromey
2013-11-06 17:14 ` Tom Tromey [this message]
2013-11-06 17:25 ` [PATCH v2 14/16] import gnulib sys_wait module Tom Tromey
2013-11-06 19:03   ` Eli Zaretskii
2013-11-14 21:04     ` Tom Tromey
2013-11-15  7:41       ` Eli Zaretskii
2013-11-06 17:27 ` [PATCH v2 08/16] don't check for stddef.h Tom Tromey
2013-11-06 17:37 ` [PATCH v2 10/16] don't check for unistd.h Tom Tromey
2013-11-06 17:38 ` [PATCH v2 15/16] conditionally define __WCLONE Tom Tromey
2013-11-14 21:56   ` Tom Tromey
2013-11-18 18:59     ` Pedro Alves
2013-11-18 19:21       ` Tom Tromey
2013-11-06 17:43 ` [PATCH v2 11/16] sys/types.h cleanup Tom Tromey
2013-11-06 18:15 ` [PATCH v2 07/16] remove gdb_dirent.h Tom Tromey
2013-11-06 19:04 ` [PATCH v2 13/16] remove gdb_stat.h Tom Tromey
2013-11-06 19:04 ` [PATCH v2 05/16] don't check for string.h or strings.h Tom Tromey
2013-11-06 19:05 ` [PATCH v2 16/16] remove gdb_wait.h Tom Tromey
2013-11-06 19:05 ` [PATCH v2 06/16] import gnulib dirent module Tom Tromey
2013-11-06 19:26 ` [PATCH v2 12/16] import gnulib sys/stat.h module Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1383757800-6332-10-git-send-email-tromey@redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox