From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10756 invoked by alias); 23 Feb 2006 18:32:28 -0000 Received: (qmail 10747 invoked by uid 22791); 23 Feb 2006 18:32:28 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 23 Feb 2006 18:32:26 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FCLGK-00083U-Ig for gdb-patches@sourceware.org; Thu, 23 Feb 2006 13:32:24 -0500 Date: Thu, 23 Feb 2006 18:35:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: [rfa] Add a prototype for tgetnum Message-ID: <20060223183224.GA30924@nevyn.them.org> Mail-Followup-To: gdb-patches@sourceware.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00432.txt.bz2 Right now a Win32 GDB fails to build because of the tgetnum ("li") call in utils.c. This patch parallels why it works for readline, which doesn't get a warning. Does anyone object? -- Daniel Jacobowitz CodeSourcery 2006-02-23 Daniel Jacobowitz * gdb_curses.h: Provide a fallback prototype for tgetnum. Index: src/gdb/gdb_curses.h =================================================================== --- src.orig/gdb/gdb_curses.h 2006-02-23 11:40:05.000000000 -0500 +++ src/gdb/gdb_curses.h 2006-02-23 13:29:43.000000000 -0500 @@ -1,6 +1,6 @@ /* Portable . - Copyright (C) 2004 Free Software Foundation, Inc. + Copyright (C) 2004, 2006 Free Software Foundation, Inc. This file is part of GDB. @@ -36,6 +36,12 @@ #include #elif defined (HAVE_TERM_H) #include +#else +/* On MinGW, a real termcap library is usually not present. Stub versions + of the termcap functions will be built from win32-termcap.c. Readline + provides its own extern declarations when there's no termcap.h; do the + same here for the termcap functions used in GDB. */ +extern int tgetnum (const char *); #endif #endif /* gdb_curses.h */