--- sj3/sj3.c.orig	Sun Feb  6 18:55:38 2000
+++ sj3/sj3.c	Sun Feb  6 18:58:44 2000
@@ -46,6 +46,9 @@
 #define LACKOF_SETLOCALE
 #endif
 #endif
+#if defined(__FreeBSD__)
+#include <sys/ioctl_compat.h>
+#endif
 #include <curses.h>
 #endif
 
