Signed-off-by: Vinit Dhatrak <[email protected]>
---
--- a/scsi-target-utils.spec    2009-07-08 02:28:33.000000000 -0400
+++ b/scsi-target-utils.spec    2009-07-08 02:41:06.000000000 -0400
@@ -11,6 +11,7 @@ URL:            http://stgt.berlios.de
 Source0:        http://stgt.berlios.de/releases/tgt-%{date}.tar.bz2
 Source1:        tgtd.init
 Patch0:         tgt-20080805-shebang.patch
+Patch1:         tgt-20090807-file-range-arm.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  openssl-devel pkgconfig
@@ -23,6 +24,7 @@ Currently, software iSCSI targets are su
 %prep
 %setup -q -n tgt-%{date}
 %patch0 -p1
+%patch1 -p1
 %{__chmod}  0644 scripts/tgt-core-test
 
 %build
@@ -76,6 +78,9 @@ fi
 %{_initrddir}/tgtd
 
 %changelog
+* Mon Jul 06 2009 Vinit Dhatrak <[email protected]> - 0.0-6.20080805snap
+- Add patch for sync_file_range on arm arch.
+
 * Tue Oct 21 2008 Terje Rosten <[email protected]> - 0.0-6.20080805snap
 - Add tgt-admin man page, tgt-admin and tgt-core-test
 

--- tgt-20080805/usr/util.h     2008-07-31 19:01:51.000000000 -0400
+++ tgt-20090807/usr/util.h     2009-07-08 02:32:20.000000000 -0400
@@ -107,6 +107,8 @@ extern unsigned long pagesize, pageshift
 #define __NR_sync_file_range    1300
 #elif defined(__powerpc64__) || defined(__PPC__)
 #define __NR_sync_file_range    308
+#elif defined(__arm__)
+#define __NR_sync_file_range    __NR_sync_file_range2
 #endif
 #endif
 

_______________________________________________
fedora-arm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-arm

Reply via email to