summaryrefslogtreecommitdiff
path: root/multimedia/libmpeg3/patches/patch-ah
blob: c3740d39519fac4803662932e3e1aaf9bb006ce3 (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
26
27
28
29
30
31
32
33
$NetBSD: patch-ah,v 1.7 2008/06/21 11:45:56 drochner 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,26 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sys/stat.h>
-
+#if defined(__NetBSD__) || defined(__DragonFly__) || (defined(__APPLE__) && defined(__MACH__))
+# include <sys/param.h>
+# include <sys/mount.h>
+
+# if defined(__APPLE__) && defined(__MACH__)
+#include <sys/cdefs.h>
+# endif
+# if (defined(__NetBSD__) && __NetBSD_Version__ >= 299000900 /* 2.99.9 */) || defined(__DragonFly__) || (defined(__APPLE__) && defined(__MACH__)  && !defined(__DARWIN_64_BIT_INO_T) /* MacOSX < 10.5 */)
+#  define stat64 stat
+# endif
+# if defined(__NetBSD__) && __NetBSD_Version__ >= 299000900 /* 2.99.9 */
+#  define statfs statvfs
+# endif
+
+# include <sys/types.h>
+# include <sys/stat.h>
+#else
+# include <mntent.h>
+# include <sys/stat.h>
+#endif
 
 
 #define PUT_INT32(x) \