From: Yukihiro Matsumoto Date: 2005-11-21T08:58:26+09:00 Subject: Re: Building Ruby 1.8.2 on HP-UX 10.20 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 G�mez Garrido 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 +#if defined(__hpux) && !defined(__GNUC__) || defined(__DECC) +#include +#endif + +#if !defined(__CYGWIN32__) && defined(__hpux) && !defined(__GNUC__) +#include +#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 -#endif - /* @@ -305,6 +311,2 @@ static int BSD__sfvwrite(fp, uio) -#if !defined(__CYGWIN32__) && defined(__hpux) && !defined(__GNUC__) -#include -#endif - /*