Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / py-crypto / patches / patch-ab
blobc319173b5f019ca213bcb8937797e64ed6b72f59
1 $NetBSD: patch-ab,v 1.3 2010/07/22 19:34:11 gdt Exp $
3 Something in the build fails to detect that we have wchar.h.  This
4 change make it build on NetBSD; a better fix is welcome.
6 --- src/libtom/tomcrypt_pk.h.orig       2010-08-27 04:41:55.000000000 +0000
7 +++ src/libtom/tomcrypt_pk.h
8 @@ -495,12 +495,7 @@ int der_length_printable_string(const un
9  int der_printable_char_encode(int c);
10  int der_printable_value_decode(int v);
12 -/* UTF-8 */
13 -#if (defined(SIZE_MAX) || __STDC_VERSION__ >= 199901L || defined(WCHAR_MAX) || defined(_WCHAR_T) || defined(_WCHAR_T_DEFINED)) && !defined(LTC_NO_WCHAR)
14  #include <wchar.h>
15 -#else
16 -typedef ulong32 wchar_t;
17 -#endif
19  int der_encode_utf8_string(const wchar_t *in,  unsigned long inlen,
20                             unsigned char *out, unsigned long *outlen);