From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19722 invoked from network); 4 Jan 2002 09:33:20 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 4 Jan 2002 09:33:20 -0000 Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.22 #1 (Debian)) id 16MQio-0006e1-00; Fri, 04 Jan 2002 04:33:06 -0500 Received: from gnats by fencepost.gnu.org with local (Exim 3.22 #1 (Debian)) id 16MQig-0006d6-00; Fri, 04 Jan 2002 04:32:58 -0500 From: demizu@dd.iij4u.or.jp To: pdm-gnats@zamazal.org,gnats-prs@gnu.org,bug-gnats@gnu.org Reply-To: demizu@dd.iij4u.or.jp Subject: gnats/319: basename() requires on NetBSD 1.5.2, but it is not included. Message-Id: Sender: gnats-prs-admin@gnu.org Errors-To: gnats-prs-admin@gnu.org X-BeenThere: gnats-prs@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Copies of bug tracking system messages List-Archive: Date: Fri, 04 Jan 2002 01:33:00 -0000 X-SW-Source: 2002-q1/txt/msg00005.txt.bz2 >Number: 319 >Category: gnats >Synopsis: basename() requires on NetBSD 1.5.2, but it is not included. >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Jan 04 04:32:58 -0500 2002 >Originator: Noritoshi Demizu >Release: gnats 4.0 beta 1 (CVS) >Organization: >Environment: NetBSD 1.5.2 >Description: On NetBSD 1.5.2, gnats/query-pr.c cannot be compiled because basename() requires . >How-To-Repeat: make gnats 4.0 beta on NetBSD 1.5.2. >Fix: Here is a sample fix. --- gnats/gnats.h-ORG Mon Dec 24 05:21:33 2001 +++ gnats/gnats.h Mon Dec 31 13:37:44 2001 @@ -87,6 +87,10 @@ #include #endif +#ifdef HAVE_LIBGEN_H +#include +#endif /* HAVE_LIBGEN_H */ + #ifndef alloca /* Make alloca work the best possible way. */ #ifdef __GNUC__ --- gnats/configure.in-ORG Mon Dec 24 05:21:33 2001 +++ gnats/configure.in Mon Dec 31 13:36:10 2001 @@ -88,7 +88,7 @@ AC_CHECK_LIB(crypt, crypt) AC_STDC_HEADERS -AC_CHECK_HEADERS(string.h fcntl.h limits.h syslog.h memory.h netdb.h unistd.h crypt.h sys/select.h machine/endian.h) +AC_CHECK_HEADERS(string.h fcntl.h limits.h syslog.h memory.h netdb.h unistd.h crypt.h sys/select.h machine/endian.h libgen.h) AC_EGREP_HEADER(\, stdlib.h, AC_DEFINE(HAVE_DECL_UNSETENV,1,[Whether unsetenv is present in headers.]), AC_DEFINE(HAVE_DECL_UNSETENV,0,[Whether unsetenv is present in headers.])) --- gnats/autoconf.h.in-ORG Mon Dec 24 05:21:33 2001 +++ gnats/autoconf.h.in Mon Dec 31 13:40:48 2001 @@ -111,6 +111,9 @@ /* Define if you have the header file. */ #undef HAVE_UNISTD_H +/* Define if you have the header file. */ +#undef HAVE_LIBGEN_H + /* Define if you have the crypt library (-lcrypt). */ #undef HAVE_LIBCRYPT >Unformatted: _______________________________________________ Gnats-prs mailing list Gnats-prs@gnu.org http://mail.gnu.org/mailman/listinfo/gnats-prs