pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/33435: cannot build libiconv under OpenBSD-3.8/spark64



The following reply was made to PR pkg/33435; it has been noted by GNATS.

From: Aleksey Cheusov <cheusov%tut.by@localhost>
To: gnats-bugs%NetBSD.org@localhost
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.
 



Home | Main Index | Thread Index | Old Index