$NetBSD: patch-ah,v 1.2 1999/11/30 13:24:47 rh Exp $ --- Common/clanstring.h.orig Sun Jul 11 13:14:05 1999 +++ Common/clanstring.h Tue Nov 30 10:28:01 1999 @@ -65,6 +65,8 @@ #ifndef WIN32 #include +#include +#include #endif #ifdef __BEOS__ @@ -148,6 +150,9 @@ float float_number = _float_number; +#if (defined(BSD) && BSD >= 199306) + snprintf(buf, sizeof buf, "%.*f", precision, (double)_float_number); +#else const char *_float_buffer = fcvt( float_number, precision, @@ -172,6 +177,7 @@ strcat(buf, "."); strcat(buf, &float_buffer[decimal]); +#endif copy_strings: int len=0;