openbsd-ports/security/gnutls/patches/patch-doc_examples_ex-cert-select-pkcs11_c
2012-07-08 09:02:10 +00:00

17 lines
478 B
Plaintext

$OpenBSD: patch-doc_examples_ex-cert-select-pkcs11_c,v 1.4 2012/07/08 09:02:10 ajacoutot Exp $
MIN is already defined in sys/param.h.
--- doc/examples/ex-cert-select-pkcs11.c.orig Fri Jun 8 09:20:58 2012
+++ doc/examples/ex-cert-select-pkcs11.c Sat Jul 7 12:23:07 2012
@@ -24,6 +24,9 @@
#define MAX_BUF 1024
#define MSG "GET / HTTP/1.0\r\n\r\n"
+#ifdef MIN
+#undef MIN
+#endif
#define MIN(x,y) (((x)<(y))?(x):(y))
#define CAFILE "/etc/ssl/certs/ca-certificates.crt"