blob: 5d87a7c442d865b87f436d6b16c71964ea88a9dc (
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-aa,v 1.2 2004/05/30 17:57:52 tron Exp $
--- transport.hxx.orig 2004-01-20 16:55:16.000000000 +0100
+++ transport.hxx 2004-05-30 19:55:42.000000000 +0200
@@ -6,17 +6,22 @@
// For further details see http://fy.chalmers.se/~appro/linux/DVD+RW/
//
-#if defined(__unix) || defined(__unix__)
+#if defined(__unix) || defined(__unix__) || defined(__NetBSD__)
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
+#include <sys/param.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
+#if defined(__NetBSD__) && (__NetBSD_Version__ > 200030000)
+#define statfs statvfs
+#endif
+
#ifndef EMEDIUMTYPE
#define EMEDIUMTYPE EINVAL
#endif
|