$NetBSD: patch-ah,v 1.3 2004/09/15 15:15:14 minskim Exp $ --- snd-file.c.orig 1998-02-10 08:42:41.000000000 -0600 +++ snd-file.c @@ -15,6 +15,14 @@ #include #endif +#if defined (__NetBSD__) + #include + #include + #if (__NetBSD_Version__ >= 200040000) /* NetBSD 2.0D */ + #define statfs statvfs + #endif +#endif + #ifdef BEOS int disk_kspace (int fd) {return(1234567);} time_t file_write_date(char *filename) {return(1234567);} @@ -26,7 +34,7 @@ int disk_kspace (int fd) #if defined(SGI) || defined(SCO5) || defined(UW2) || defined(SOLARIS) err = fstatfs(fd,&buf,sizeof(buf),0); #endif -#if defined(LINUX) || defined(NEXT) +#if defined(LINUX) || defined(NEXT) || defined(__NetBSD__) err = fstatfs(fd,&buf); #endif /* in 32 bit land, the number of bytes can easily go over 2^32, so we'll look at kbytes here */