28 lines
721 B
Text
28 lines
721 B
Text
$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
|