You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ro...@imdb.com> on 1997/03/12 17:21:45 UTC
[BUG]: "ap_snprintf() compiled in on NetBSD 1.2, FreeBSD 2.1.7 even through there is native [v]snprintf()" on NetBSD (fwd)
If I remember correctly, this behaviour was deliberate.
---------- Forwarded message ----------
Date: Wed Mar 12 7:43:30 1997
From: dolecek@ics.muni.cz
To: apache-bugs%apache.org@organic.com
Subject: [BUG]: "ap_snprintf() compiled in on NetBSD 1.2, FreeBSD 2.1.7 even through there is native [v]snprintf()" on NetBSD
Submitter: dolecek@ics.muni.cz
Operating system: NetBSD, version: 1.2
Version of Apache Used: 1.2b7
Extra Modules used: php/fi
URL exhibiting problem:
Symptoms:
--
Apache's ap_[v]snprintf() are compiled in and used
even through there is native snprintf()
until NetBSD release 1.2; the same think affects
FreeBSD folks, they have [v]snprintf() since
FreeBSD 2.1.7 ; patch which makes
HAVE_SNPRINTF to be defined for affected systems
follows (as context diff):
*** src/conf.h.orig Wed Mar 12 15:16:55 1997
--- src/conf.h Wed Mar 12 16:37:24 1997
***************
*** 363,368 ****
--- 363,374 ----
#define JMP_BUF sigjmp_buf
#define DEFAULT_USER "nobody"
#define DEFAULT_GROUP "nogroup"
+ #if defined(NetBSD) && NetBSD >= 199609
+ /* there is native snprintf() since NetBSD 1.2 release */
+ /* NetBSD is a constant defined in <sys/param.h> and gives */
+ /* year & month when the current system was released */
+ # define HAVE_SNPRINTF
+ #endif
#elif defined(UTS21)
#undef HAVE_GMTOFF
***************
*** 383,389 ****
--- 389,398 ----
#elif defined(__FreeBSD__) || defined(__bsdi__)
#if defined(__FreeBSD__)
#include <osreldate.h>
+ #if defined(__FreeBSD_version) && __FreeBSD_version >= 199612
+ # define HAVE_SNPRINTF
#endif
+ #endif /* __FreeBSD__ */
#define HAVE_SYS_RESOURCE_H
#define HAVE_GMTOFF
#undef NO_KILLPG
--
Backtrace:
--
--