summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-12-17 22:32:03 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-12-17 22:32:03 +1100
commitd40c66cf3f5d7713ea9489778dc450a48984a81d (patch)
tree2467c34954fa48e473fa0c944b5c29f455b32d99 /openbsd-compat
parent98cfc4ce9d2a6f34b63f1354f3149b501398a160 (diff)
- (dtucker) [configure.ac openbsd-compat/bsd-snprintf.c] Bug #1133: Our
snprintf replacement can have a conflicting declaration in HP-UX's system headers (const vs. no const) so we now check for and work around it. Patch from the dynamic duo of David Leonard and Ted Percival.
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/bsd-snprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/bsd-snprintf.c b/openbsd-compat/bsd-snprintf.c
index ca275abdf..e4ba154fd 100644
--- a/openbsd-compat/bsd-snprintf.c
+++ b/openbsd-compat/bsd-snprintf.c
@@ -89,7 +89,7 @@
89 89
90#include "includes.h" 90#include "includes.h"
91 91
92RCSID("$Id: bsd-snprintf.c,v 1.10 2005/11/24 08:58:21 djm Exp $"); 92RCSID("$Id: bsd-snprintf.c,v 1.11 2005/12/17 11:32:04 dtucker Exp $");
93 93
94#if defined(BROKEN_SNPRINTF) /* For those with broken snprintf() */ 94#if defined(BROKEN_SNPRINTF) /* For those with broken snprintf() */
95# undef HAVE_SNPRINTF 95# undef HAVE_SNPRINTF
@@ -788,7 +788,7 @@ int vsnprintf (char *str, size_t count, const char *fmt, va_list args)
788#endif 788#endif
789 789
790#if !defined(HAVE_SNPRINTF) 790#if !defined(HAVE_SNPRINTF)
791int snprintf(char *str,size_t count,const char *fmt,...) 791int snprintf(char *str, size_t count, SNPRINTF_CONST char *fmt, ...)
792{ 792{
793 size_t ret; 793 size_t ret;
794 va_list ap; 794 va_list ap;