diff options
Diffstat (limited to 'multimedia/libmpeg3/patches/patch-ah')
-rw-r--r-- | multimedia/libmpeg3/patches/patch-ah | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/multimedia/libmpeg3/patches/patch-ah b/multimedia/libmpeg3/patches/patch-ah index ec968b20a02..cc9fc6dc140 100644 --- a/multimedia/libmpeg3/patches/patch-ah +++ b/multimedia/libmpeg3/patches/patch-ah @@ -1,19 +1,21 @@ -$NetBSD: patch-ah,v 1.3 2008/02/20 09:56:44 xtraeme Exp $ +$NetBSD: patch-ah,v 1.4 2008/05/21 19:21:33 tonio Exp $ --- mpeg3tocutil.c.orig 2008-02-19 19:21:30.000000000 +0100 +++ mpeg3tocutil.c 2008-02-19 19:22:41.000000000 +0100 -@@ -5,8 +5,21 @@ +@@ -5,8 +5,23 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/stat.h> - -+#if defined(__NetBSD__) || defined(__DragonFly__) ++#if defined(__NetBSD__) || defined(__DragonFly__) || (defined(__APPLE__) && defined(__MACH__)) +# include <sys/param.h> +# include <sys/mount.h> + -+# if defined(__NetBSD__) && __NetBSD_Version__ >= 299000900 /* 2.99.9 */ ++# if (defined(__NetBSD__) && __NetBSD_Version__ >= 299000900 /* 2.99.9 */) || (defined(__APPLE__) && defined(__MACH__) /* MacOSX */) +# define stat64 stat ++# endif ++# if defined(__NetBSD__) && __NetBSD_Version__ >= 299000900 /* 2.99.9 */ +# define statfs statvfs +# endif + |