--- freem/src/views.c	2025/01/19 02:04:04	1.1
+++ freem/src/views.c	2025/02/28 20:51:20	1.4
@@ -70,7 +70,11 @@
 #ifdef __CYGWIN__
 #include <errno.h>
 #endif /* __CYGWIN__ */
-#include <errno.h> //jpw
+#include <errno.h> /* snw */
+
+#if defined(__NetBSD__) || defined(__OpenBSD__)
+#include <sys/ioctl.h>
+#endif
 
 #include <fcntl.h>
 #include <unistd.h>
@@ -100,7 +104,7 @@ void destroy(GtkWidget* widget, gpointer
 #endif
 
 
-void view_com ()
+void view_com (void)
 {
     /* process VIEW command */