summaryrefslogtreecommitdiff
path: root/audio/libtunepimp/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'audio/libtunepimp/patches/patch-aa')
-rw-r--r--audio/libtunepimp/patches/patch-aa26
1 files changed, 21 insertions, 5 deletions
diff --git a/audio/libtunepimp/patches/patch-aa b/audio/libtunepimp/patches/patch-aa
index 2b5f072dd72..b10a5e2d302 100644
--- a/audio/libtunepimp/patches/patch-aa
+++ b/audio/libtunepimp/patches/patch-aa
@@ -1,14 +1,30 @@
-$NetBSD: patch-aa,v 1.1.1.1 2006/04/12 21:41:58 wiz Exp $
+$NetBSD: patch-aa,v 1.2 2006/04/16 22:10:25 markd Exp $
---- lib/write.cpp.orig 2006-01-19 21:05:11.000000000 +0000
+--- lib/write.cpp.orig 2006-01-20 10:05:11.000000000 +1300
+++ lib/write.cpp
-@@ -38,6 +38,9 @@
- # if defined(__APPLE__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
+@@ -35,9 +35,12 @@
+ # include <sys/stat.h>
+ # include <sys/types.h>
+ # include <fcntl.h>
+-# if defined(__APPLE__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
++# if defined(__APPLE__) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
# include <sys/param.h>
# include <sys/mount.h>
+# if (defined(__NetBSD__) && __NetBSD_Version__ >= 299000900)
-+# define statfs statvfs
++# define HAVE_STATVFS 1
+# endif
# else
# include <sys/vfs.h>
# endif
+@@ -54,6 +57,11 @@
+ #include "fileio.h"
+ #include "utf8/utf8util.h"
+
++#if defined(HAVE_STATVFS)
++# define statfs statvfs
++# define f_bsize f_frsize
++#endif
++
+ #ifdef WIN32
+ const char *dirSep = "\\";
+ const char dirSepChar = '\\';