--- ./routines/metanet/loadg.c.orig	Sat Aug  8 13:53:32 1998
+++ ./routines/metanet/loadg.c	Sat Aug  8 13:58:47 1998
@@ -1,4 +1,7 @@
 #include <stdio.h>
 #ifndef __MSC__
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#endif
 #include <dirent.h>
 #endif
@@ -14,5 +17,4 @@
 #define  getwd(x) _getcwd(x,1024)
 #endif
-
 
 #include "mysearch.h"
