# include <unistd.h>
# include <fcntl.h>
# ifdef __FreeBSD__
-# include <machine/joystick.h>
+# include <sys/joystick.h>
# define JS_DATA_TYPE joystick
# define JS_RETURN (sizeof(struct JS_DATA_TYPE))
# elif defined(__linux__)
if( status != JS_RETURN )
{
- fgWarning( joy->fname );
+ fgWarning( "%s", joy->fname );
joy->error = TRUE;
return;
}