public inbox for gnats-prs@sourceware.org
help / color / mirror / Atom feed
* gnats/319: basename() requires <libgen.h> on NetBSD 1.5.2, but it is not included.
@ 2002-01-04  1:33 demizu
  2002-01-05 15:15 ` Milan Zamazal
  0 siblings, 1 reply; 3+ messages in thread
From: demizu @ 2002-01-04  1:33 UTC (permalink / raw)
  To: pdm-gnats, gnats-prs, bug-gnats

>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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-07 14:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-04  1:33 gnats/319: basename() requires <libgen.h> on NetBSD 1.5.2, but it is not included demizu
2002-01-05 15:15 ` Milan Zamazal
2002-01-07  6:24   ` Noritoshi Demizu

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).