17 lines
477 B
Plaintext
17 lines
477 B
Plaintext
$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;
|