$OpenBSD: patch-utils_magsgtty_h,v 1.2 2020/03/08 12:47:36 sthen Exp $

Index: utils/magsgtty.h
--- utils/magsgtty.h.orig
+++ utils/magsgtty.h
@@ -33,7 +33,12 @@
 # endif
 
 #include <sys/ioctl.h>
+
+#if defined(__OpenBSD__)
+#include <termios.h>
+#else
 #include <sys/ioctl_compat.h>
+#endif
 
 #else
 #include <termio.h>
