From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12695 invoked by alias); 14 Aug 2009 04:24:49 -0000 Received: (qmail 12571 invoked by uid 22791); 14 Aug 2009 04:24:47 -0000 X-SWARE-Spam-Status: No, hits=-46.6 required=5.0 tests=AWL,BAYES_00,HK_OBFDOM,J_CHICKENPOX_23,KAM_MX3,SPF_HELO_PASS,SPF_PASS,URIBL_BLACK X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 14 Aug 2009 04:24:41 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n7E4ObiU025568; Fri, 14 Aug 2009 00:24:37 -0400 Received: from greed.delorie.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n7E4OYQf028224; Fri, 14 Aug 2009 00:24:35 -0400 Received: from greed.delorie.com (greed.delorie.com [127.0.0.1] (may be forged)) by greed.delorie.com (8.14.3/8.14.3) with ESMTP id n7E4OX4Y007383; Fri, 14 Aug 2009 00:24:33 -0400 Received: (from dj@localhost) by greed.delorie.com (8.14.3/8.14.3/Submit) id n7E4OW7M007380; Fri, 14 Aug 2009 00:24:32 -0400 Date: Fri, 14 Aug 2009 04:24:00 -0000 Message-Id: <200908140424.n7E4OW7M007380@greed.delorie.com> From: DJ Delorie To: Mahesh Basavaraj Shavari CC: gdb@sourceware.org, kevinb@redhat.com In-reply-to: (message from Mahesh Basavaraj Shavari on Wed, 5 Aug 2009 18:29:03 +0530) Subject: Re: Mingw GDB build fails for M16C target References: X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-08/txt/msg00096.txt.bz2 > There is still following issue with simulator building: Fixed. 2009-08-14 DJ Delorie * configure.in: Check for sys/select.h, termios.h, sys/socket.h, netinet/in.h, and netinet/tcp.h. * configure: Regenerate. * config.in: Add those headers. * main.c: Check for them. (setup_tcp_console): Disable if no networking. (main): Note missing networking or termios. * mem.c: Check for those headers. (stdin_ready): Disable if no termios. (m32c_sim_restore_console): Disable if no termios. (mem_get_byte): Disable console input if no termios. Index: config.in =================================================================== RCS file: /cvs/src/src/sim/m32c/config.in,v retrieving revision 1.2 diff -p -U3 -r1.2 config.in --- config.in 11 Jul 2008 02:37:08 -0000 1.2 +++ config.in 14 Aug 2009 04:23:06 -0000 @@ -22,6 +22,12 @@ /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H +/* Define to 1 if you have the header file. */ +#undef HAVE_NETINET_IN_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_NETINET_TCP_H + /* Define to 1 if you have the `nsl' library (-lnsl). */ #undef HAVE_LIBNSL @@ -49,15 +55,24 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_RESOURCE_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_SELECT_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_SOCKET_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H +/* Define to 1 if you have the header file. */ +#undef HAVE_TERMIOS_H + /* Define to 1 if you have the `time' function. */ #undef HAVE_TIME Index: configure.in =================================================================== RCS file: /cvs/src/src/sim/m32c/configure.in,v retrieving revision 1.5 diff -p -U3 -r1.5 configure.in --- configure.in 14 Jan 2009 10:53:07 -0000 1.5 +++ configure.in 14 Aug 2009 04:23:06 -0000 @@ -28,4 +28,6 @@ sinclude(../common/aclocal.m4) # it by inlining the macro's contents. sinclude(../common/common.m4) +AC_CHECK_HEADERS(sys/select.h termios.h sys/socket.h netinet/in.h netinet/tcp.h) + SIM_AC_OUTPUT Index: main.c =================================================================== RCS file: /cvs/src/src/sim/m32c/main.c,v retrieving revision 1.7 diff -p -U3 -r1.7 main.c --- main.c 14 Jan 2009 10:53:07 -0000 1.7 +++ main.c 14 Aug 2009 04:23:06 -0000 @@ -19,6 +19,7 @@ You should have received a copy of the G along with this program. If not, see . */ +#include "config.h" #include #include #include @@ -26,11 +27,21 @@ along with this program. If not, see #include #include - #include + +#ifdef HAVE_SYS_SOCKET_H +#ifdef HAVE_NETINET_IN_H +#ifdef HAVE_NETINET_TCP_H +#define HAVE_networking +#endif +#endif +#endif + +#ifdef HAVE_networking #include #include #include +#endif #include "bfd.h" @@ -45,8 +56,10 @@ along with this program. If not, see . */ +#include "config.h" #include #include #include @@ -26,8 +27,12 @@ along with this program. If not, see #include #include +#ifdef HAVE_SYS_SELECT_H #include +#endif +#ifdef HAVE_TERMIOS_H #include +#endif #include "mem.h" #include "cpu.h" @@ -48,9 +53,13 @@ along with this program. If not, see ");