$OpenBSD: patch-doc_examples_ex-cert-select-pkcs11_c,v 1.1 2011/05/04 15:48:10 ajacoutot Exp $

MIN is already defined in sys/param.h.

--- doc/examples/ex-cert-select-pkcs11.c.orig	Sun Apr 10 09:31:45 2011
+++ doc/examples/ex-cert-select-pkcs11.c	Wed May  4 17:35:53 2011
@@ -11,6 +11,7 @@
 #include <string.h>
 #include <sys/types.h>
 #include <sys/socket.h>
+#include <netinet/in.h>
 #include <arpa/inet.h>
 #include <unistd.h>
 #include <gnutls/gnutls.h>
@@ -25,6 +26,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 "ca.pem"
