Subject: Re: pkg/33435: cannot build libiconv under OpenBSD-3.8/spark64
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Aleksey Cheusov <cheusov@tut.by>
List: pkgsrc-bugs
Date: 05/07/2006 18:25:05
The following reply was made to PR pkg/33435; it has been noted by GNATS.

From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/33435: cannot build libiconv under OpenBSD-3.8/spark64
Date: Sun, 07 May 2006 21:24:41 +0300

 The following patch works for me, but I think it is safer
 to make like this
 
 #if HAVE_STDINT_H
 #include <stdint.h>
 #else
 #if HAVE_INTTYPES_H
 #include <inttypes.h>
 #endif
 #include "libiconv_own_stdint.h"
 #endif
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 --- srclib/unitypes.h.orig      Sun May  7 21:06:24 2006
 +++ srclib/unitypes.h
 @@ -20,7 +20,12 @@
  #define _UNITYPES_H
  
  /* Get uint8_t, uint16_t, uint32_t.  */
 +#if HAVE_STDINT_H
  #include <stdint.h>
 +#endif
 +#if HAVE_INTTYPES_H
 +#include <inttypes.h>
 +#endif
  
  /* Type representing a Unicode character.  */
  typedef uint32_t ucs4_t;
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 -- 
 Best regards, Aleksey Cheusov.