summaryrefslogtreecommitdiff
path: root/audio/snd/patches/patch-ah
blob: e613f4a01906dda2513dffaf90d8e9a862f409e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-ah,v 1.2 1998/08/07 10:36:10 agc Exp $

--- snd.orig/snd-file.c	Tue Feb 10 15:42:41 1998
+++ snd-file.c	Sun Feb 22 02:11:57 1998
@@ -15,6 +15,11 @@
   #include <sys/vfs.h>
 #endif
 
+#if defined (__NetBSD__)
+  #include <sys/param.h>
+  #include <sys/mount.h>
+#endif
+
 #ifdef BEOS
 int disk_kspace (int fd) {return(1234567);}
 time_t file_write_date(char *filename) {return(1234567);}
@@ -26,7 +31,7 @@
 #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 */