$OpenBSD: patch-third_party_openssl_openssl_crypto_ui_ui_openssl_c,v 1.2 2011/10/27 07:59:09 robert Exp $
--- third_party/openssl/openssl/crypto/ui/ui_openssl.c.orig	Fri Oct 21 10:33:27 2011
+++ third_party/openssl/openssl/crypto/ui/ui_openssl.c	Wed Oct 26 13:37:47 2011
@@ -215,6 +215,12 @@
 #undef SGTTY
 #endif
 
+#if defined(__OpenBSD__)
+#define TERMIOS
+#undef TERMIO
+#undef SGTTY
+#endif
+
 #ifdef TERMIOS
 # include <termios.h>
 # define TTY_STRUCT		struct termios
