blob: 936c04f28d7cabdfe22d618c982668f9c68c7c29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
$NetBSD: patch-ac,v 1.1.1.1 2008/03/08 00:46:23 reed Exp $
--- geometry.c.orig 2003-10-10 14:43:13.000000000 -0700
+++ geometry.c
@@ -99,6 +99,11 @@ struct evms_version_t {
#define HDIO_GETGEO HDIO_REQ
#endif
+/* Linux 2.6 compatibility */
+#undef _IOR
+#undef _IOWR
+#define _IOR(type,nr,size) _IOC(_IOC_READ,(type),(nr),sizeof(size))
+#define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
typedef struct _st_buf {
struct _st_buf *next;
|