openbsd-ports/security/gnutls/patches/patch-src_common_c
ajacoutot 4079be8ce1 Bugfix update to gnutls-2.12.3.
Incidentally fixes a build breakage when libgcrypt wasn't installed as
spotted by jasper@
2011-05-04 15:48:10 +00:00

17 lines
373 B
Plaintext

$OpenBSD: patch-src_common_c,v 1.1 2011/05/04 15:48:10 ajacoutot Exp $
MIN is already defined in sys/param.h.
--- src/common.c.orig Wed May 4 17:34:54 2011
+++ src/common.c Wed May 4 17:35:27 2011
@@ -41,6 +41,9 @@
#include <gnutls/pkcs11.h>
#define SU(x) (x!=NULL?x:"Unknown")
+#ifdef MIN
+#undef MIN
+#endif
#define MIN(x,y) ((x)<(y))?(x):(y)
int print_cert;