--- lib/screen.c.orig	Sat Jan 22 21:43:52 2005
+++ lib/screen.c	Sat Jan 22 21:49:26 2005
@@ -20,7 +20,7 @@
 
 #include "misc.h"
 
-#ifndef TIOCGWINSZ
+#if !defined(TIOCGWINSZ) || defined(__OpenBSD__)
 #include <sys/ioctl.h>
 #endif
 
