--- ./routines/metanet/saveg.c.orig Sat Aug 8 14:01:11 1998 +++ ./routines/metanet/saveg.c Sat Aug 8 14:06:07 1998 @@ -1,4 +1,7 @@ #include #ifndef __MSC__ +#if defined(netbsd) || defined(freebsd) +#include +#endif #include #endif @@ -13,4 +16,8 @@ /** only used for x=dir[1024] **/ #define getwd(x) _getcwd(x,1024) +#endif + +#if defined(netbsd) || defined(freebsd) +#include #endif