diff -r e39a632d12f7 -r afdc12167a56 libidn/libidn.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libidn/libidn.patch Tue Aug 28 18:34:00 2012 +0200 @@ -0,0 +1,91 @@ +Index: configure +--- configure.orig 2012-05-23 10:36:44.000000000 +0200 ++++ configure 2012-05-29 09:37:30.000000000 +0200 +@@ -4984,10 +4984,7 @@ + if $ac_preproc_ok; then : + + else +- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 +-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +-as_fn_error $? "C preprocessor \"$CPP\" fails sanity check +-See \`config.log' for more details" "$LINENO" 5; } ++ : + fi + + ac_ext=c +Index: contrib/doxygen/Doxyfile +Index: gl/error.c +--- gl/error.c.orig 2012-04-27 10:18:42.000000000 +0200 ++++ gl/error.c 2012-05-29 09:37:03.000000000 +0200 +@@ -28,7 +28,7 @@ + #include + #include + +-#if !_LIBC && ENABLE_NLS ++#if !_LIBC && defined(ENABLE_NLS) + # include "gettext.h" + # define _(msgid) gettext (msgid) + #endif +Index: gl/gettext.h +--- gl/gettext.h.orig 2012-04-27 10:18:42.000000000 +0200 ++++ gl/gettext.h 2012-05-29 09:37:03.000000000 +0200 +@@ -19,7 +19,7 @@ + #define _LIBGETTEXT_H 1 + + /* NLS can be disabled through the configure --disable-nls option. */ +-#if ENABLE_NLS ++#ifdef ENABLE_NLS + + /* Get declarations of GNU message catalog functions. */ + # include +Index: lib/gl/gettext.h +--- lib/gl/gettext.h.orig 2012-04-27 10:18:42.000000000 +0200 ++++ lib/gl/gettext.h 2012-05-29 09:37:03.000000000 +0200 +@@ -19,7 +19,7 @@ + #define _LIBGETTEXT_H 1 + + /* NLS can be disabled through the configure --disable-nls option. */ +-#if ENABLE_NLS ++#ifdef ENABLE_NLS + + /* Get declarations of GNU message catalog functions. */ + # include +Index: lib/gl/stdint.in.h +--- lib/gl/stdint.in.h.orig 2012-05-22 19:55:38.000000000 +0200 ++++ lib/gl/stdint.in.h 2012-05-29 09:37:03.000000000 +0200 +@@ -105,7 +105,7 @@ + # include + #endif + +-#if @HAVE_SYS_BITYPES_H@ && ! defined __BIT_TYPES_DEFINED__ ++#if (@HAVE_SYS_BITYPES_H@ + 0) && ! defined __BIT_TYPES_DEFINED__ + /* Linux libc4 >= 4.6.7 and libc5 have a that defines + int{8,16,32,64}_t and __BIT_TYPES_DEFINED__. In libc5 >= 5.2.2 it is + included by . */ +@@ -535,7 +535,7 @@ + # define SIZE_MAX _STDINT_MAX (0, 32, 0ul) + # endif + #else +-# define SIZE_MAX _STDINT_MAX (0, @BITSIZEOF_SIZE_T@, 0@SIZE_T_SUFFIX@) ++# define SIZE_MAX _STDINT_MAX (0, sizeof(size_t)*8, 0@SIZE_T_SUFFIX@) + #endif + + /* wchar_t limits */ +Index: lib/stringprep.c +--- lib/stringprep.c.orig 2012-04-27 12:48:08.000000000 +0200 ++++ lib/stringprep.c 2012-05-29 09:37:03.000000000 +0200 +@@ -33,6 +33,14 @@ + + #include + #include ++#include ++ ++#undef size_t ++#if 0 ++#ifndef SIZE_MAX ++#define SIZE_MAX ((((size_t)1)<<(sizeof(size_t)*8))-1) ++#endif ++#endif + + #include "stringprep.h" +