--- freem/src/views.c	2025/01/19 02:04:04	1.1
+++ freem/src/views.c	2025/03/09 15:20:18	1.5
@@ -15,7 +15,7 @@
  *    implementation of VIEW command and $VIEW intrinsic function
  *
  *  
- *   Author: Serena Willis <jpw@coherent-logic.com>
+ *   Author: Serena Willis <snw@coherent-logic.com>
  *    Copyright (C) 1998 MUG Deutschland
  *    Copyright (C) 2020 Coherent Logic Development LLC
  *
@@ -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 */