public inbox for gnats-prs@sourceware.org help / color / mirror / Atom feed
From: demizu@dd.iij4u.or.jp To: pdm-gnats@zamazal.org,gnats-prs@gnu.org,bug-gnats@gnu.org Subject: gnats/319: basename() requires <libgen.h> on NetBSD 1.5.2, but it is not included. Date: Fri, 04 Jan 2002 01:33:00 -0000 [thread overview] Message-ID: <E16MQig-0006d6-00@fencepost.gnu.org> (raw) >Number: 319 >Category: gnats >Synopsis: basename() requires <libgen.h> 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 <libgen.h>. >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 <sys/file.h> #endif +#ifdef HAVE_LIBGEN_H +#include <libgen.h> +#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(\<unsetenv\>, 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 <unistd.h> header file. */ #undef HAVE_UNISTD_H +/* Define if you have the <libgen.h> 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
next reply other threads:[~2002-01-04 9:33 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-01-04 1:33 demizu [this message] 2002-01-05 15:15 ` Milan Zamazal 2002-01-07 6:24 ` Noritoshi Demizu
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=E16MQig-0006d6-00@fencepost.gnu.org \ --to=demizu@dd.iij4u.or.jp \ --cc=bug-gnats@gnu.org \ --cc=gnats-prs@gnu.org \ --cc=pdm-gnats@zamazal.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: linkBe 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; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).