diff options
Diffstat (limited to 'security/gnutls/patches/patch-ac')
-rw-r--r-- | security/gnutls/patches/patch-ac | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/security/gnutls/patches/patch-ac b/security/gnutls/patches/patch-ac new file mode 100644 index 00000000000..d2720dba961 --- /dev/null +++ b/security/gnutls/patches/patch-ac @@ -0,0 +1,23 @@ +$NetBSD: patch-ac,v 1.5 2007/09/14 12:03:38 joerg Exp $ + +Hack around GNUlib idiosyncracy where the overwritten stdio.h includes +sys/types.h which includes stdint.h (overwritten!) which includes wchar.h +which includes stdio.h, BOOM. + +--- gl/stdio_.h.orig 2007-09-14 11:29:05.000000000 +0000 ++++ gl/stdio_.h +@@ -35,6 +35,14 @@ + #include <stdarg.h> + #include <stddef.h> + ++#ifdef __DragonFly__ ++#include <machine/stdint.h> ++#ifndef _SSIZE_T_DECLARED ++#define _SSIZE_T_DECLARED ++typedef __ssize_t ssize_t; ++#endif ++#endif ++ + #if (@GNULIB_FSEEKO@ && @REPLACE_FSEEKO@) \ + || (@GNULIB_FTELLO@ && @REPLACE_FTELLO@) \ + || (@GNULIB_GETDELIM@ && !@HAVE_DECL_GETDELIM@) \ |