blob: ec968b20a0268c72d821d01080efdf2038b7cb1e (
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
|
$NetBSD: patch-ah,v 1.3 2008/02/20 09:56:44 xtraeme 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 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/stat.h>
-
+#if defined(__NetBSD__) || defined(__DragonFly__)
+# include <sys/param.h>
+# include <sys/mount.h>
+
+# if defined(__NetBSD__) && __NetBSD_Version__ >= 299000900 /* 2.99.9 */
+# define stat64 stat
+# 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) \
|