diff -ruN ../../OLD/xmame-0.30.1/./src/unix/devices.c ./src/unix/devices.c
--- ../../OLD/xmame-0.30.1/./src/unix/devices.c	Thu Jan 29 02:58:38 1998
+++ ./src/unix/devices.c	Fri Jan 30 19:54:07 1998
@@ -64,7 +64,12 @@
 #include <machine/joystick.h>
 extern struct joystick joy_data,joy_orig;
 #else
+#ifdef FREEBSD
+#include <machine/joystick.h>
+#define JS_DATA_TYPE joystick
+#else
 #include <linux/joystick.h>
+#endif
 extern struct JS_DATA_TYPE joy_data,joy_orig;
 #endif
 
