From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21536 invoked by alias); 18 Nov 2013 20:46:10 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 21484 invoked by uid 89); 18 Nov 2013 20:46:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from Unknown (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 18 Nov 2013 20:46:07 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rAIKPXeC027327 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 18 Nov 2013 15:25:34 -0500 Received: from barimba.redhat.com (ovpn-113-124.phx2.redhat.com [10.3.113.124]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id rAIKPMrI028755; Mon, 18 Nov 2013 15:25:33 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH v3 09/13] stdlib.h is universal too Date: Mon, 18 Nov 2013 20:46:00 -0000 Message-Id: <1384806318-12231-10-git-send-email-tromey@redhat.com> In-Reply-To: <1384806318-12231-1-git-send-email-tromey@redhat.com> References: <1384806318-12231-1-git-send-email-tromey@redhat.com> X-SW-Source: 2013-11/txt/msg00500.txt.bz2 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. --- 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 1d1a486..9739195 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 d6b75d6..74d56e4 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 -#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 #endif -#ifdef HAVE_STDLIB_H #include -#endif #include #include #ifdef HAVE_NETINET_IN_H -- 1.8.1.4