diff -ruN ../../OLD/xmame-0.30.1/./src/unix/FREEBSD.c ./src/unix/FREEBSD.c
--- ../../OLD/xmame-0.30.1/./src/unix/FREEBSD.c	Thu Jan  1 17:31:13 1998
+++ ./src/unix/FREEBSD.c	Fri Jan 30 19:54:07 1998
@@ -10,7 +10,8 @@
 #include "sound.h"
 
 #ifdef USE_JOYSTICK
-#include <linux/joystick.h>
+#include <machine/joystick.h>
+#define JS_DATA_TYPE joystick
 struct 	 JS_DATA_TYPE joy_data,joy_orig;
 int	 joy_fd; /* joystick file descriptor */
 #endif
