[Stgt-devel] patch for rhel4/centos4

Robin Humble robin.humble+stgt
Mon Sep 3 15:37:16 CEST 2007


BTW, here's a trivial patch against git://git.osc.edu/tgt or 
git://git.kernel.org/pub/scm/linux/kernel/git/tomo/tgt.git
to allow building of tgt on rhel4/centos4.

probably I picked the wrong .h file to put this into, but you get the
idea: <linux/fs.h> has no defines for READ or WRITE in rhel4/centos4 but
does in sles9/10, rhel5, fedora7, etc..

cheers,
robin
-------------- next part --------------
diff --git a/usr/scsi.h b/usr/scsi.h
index 425fcff..874997f 100644
--- a/usr/scsi.h
+++ b/usr/scsi.h
@@ -218,4 +218,11 @@
 #define ASC_WRITE_PROTECT			0x2700
 #define ASC_MEDIUM_OVERWRITE_ATTEMPTED		0x300c
 
+#ifndef READ
+#define READ 0
+#endif
+#ifndef WRITE
+#define WRITE 1
+#endif
+
 #endif



More information about the stgt mailing list