gnats-prs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnats/319: basename() requires <libgen.h> on NetBSD 1.5.2, but it is not


From: demizu
Subject: gnats/319: basename() requires <libgen.h> on NetBSD 1.5.2, but it is not included.
Date: Fri, 04 Jan 2002 04:32:58 -0500

>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:
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]