diff options
Diffstat (limited to 'misc/openoffice/patches/patch-at')
-rw-r--r-- | misc/openoffice/patches/patch-at | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/misc/openoffice/patches/patch-at b/misc/openoffice/patches/patch-at new file mode 100644 index 00000000000..07658450056 --- /dev/null +++ b/misc/openoffice/patches/patch-at @@ -0,0 +1,26 @@ +$NetBSD: patch-at,v 1.3 2004/05/08 11:52:52 jdolecek Exp $ + +--- setup2/mow/source/system/mowos.cxx.orig 2004-05-07 14:54:42.000000000 +0200 ++++ setup2/mow/source/system/mowos.cxx +@@ -84,10 +84,20 @@ + #ifdef LINUX + #include <sys/vfs.h> + #define statvfs statfs +-#elif (defined(NETBSD) || defined(FREEBSD) || defined(MACOSX) ) ++#elif defined(FREEBSD) || defined(MACOSX) + #include <sys/param.h> + #include <sys/mount.h> + #define statvfs statfs ++#elif defined(NETBSD) ++#include <sys/param.h> ++# if __NetBSD_Version__ >= 200040000 ++ /* NetBSD 2.0D switched to statvfs() */ ++# include <sys/statvfs.h> ++# else ++ /* before NetBSD 2.0D */ ++# include <sys/mount.h> ++# define statvfs statfs ++# endif + #else + #include <sys/statvfs.h> + #endif |