Hi,

In message "Re: Building Ruby 1.8.2 on HP-UX 10.20"
    on Mon, 21 Nov 2005 03:48:56 +0900, Gerardo Santana Gez Garrido <gerardo.santana / gmail.com> writes:

|I manually applied the patch to ruby-1.8.3/missing/vsnprintf.c and it
|seems that fixed something, but I got new errors:

Try the attached patch, please.

|Again, if I use -Aa it works, but then I get:

Hmm, it must be a difficult bug to fix.  I wish I could have access to
the HP-UX box.

							matz.

--- missing/vsnprintf.c	24 Sep 2005 13:34:26 -0000	1.15
+++ missing/vsnprintf.c	20 Nov 2005 23:56:34 -0000
@@ -113,2 +113,9 @@
 #include <stddef.h>
+#if defined(__hpux) && !defined(__GNUC__) || defined(__DECC)
+#include <string.h>
+#endif
+
+#if !defined(__CYGWIN32__) && defined(__hpux) && !defined(__GNUC__)
+#include <stdlib.h>
+#endif
 
@@ -196,2 +203,5 @@ typedef	struct __sFILE {
 
+#undef feof
+#undef ferror
+#undef clearerr
 #define	feof(p)		__sfeof(p)
@@ -205,6 +215,2 @@ typedef	struct __sFILE {
 
-#if defined(__hpux) && !defined(__GNUC__) || defined(__DECC)
-#include <string.h>
-#endif
-
 /*
@@ -305,6 +311,2 @@ static int BSD__sfvwrite(fp, uio)
 
-#if !defined(__CYGWIN32__) && defined(__hpux) && !defined(__GNUC__)
-#include <stdlib.h>
-#endif
-
 /*