--- src/callbacks_qsoframe.c.orig	Tue Nov  5 11:02:05 2002
+++ src/callbacks_qsoframe.c	Tue Nov  5 11:16:32 2002
@@ -25,6 +25,10 @@
 #include <time.h>
 #include <math.h>
 #include <ctype.h>
+#ifdef __FreeBSD__
+#include <machine/param.h>
+#include <sys/types.h>
+#endif
 #include <sys/ipc.h>
 #include <sys/shm.h>
 #include <errno.h>
