diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-15 20:35:48 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-04-15 20:35:48 +0000 |
commit | d15b852ede90e3ff8cdbf08f096db07a720b7224 (patch) | |
tree | 2bdc06ae51feef67f615146c5725a807f68a5d26 /core/iscsitarget/iscsitarget-0.4.15-isns-set-scn-flag.patch | |
parent | 105b5dbe90f1c8619d5514e9c9f1598faf405df8 (diff) | |
download | aports-d15b852ede90e3ff8cdbf08f096db07a720b7224.tar.bz2 aports-d15b852ede90e3ff8cdbf08f096db07a720b7224.tar.xz |
core/iscsitarget: new aport
Open Source iSCSI target with professional features
http://iscsitarget.sourceforge.net/
Diffstat (limited to 'core/iscsitarget/iscsitarget-0.4.15-isns-set-scn-flag.patch')
-rw-r--r-- | core/iscsitarget/iscsitarget-0.4.15-isns-set-scn-flag.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/core/iscsitarget/iscsitarget-0.4.15-isns-set-scn-flag.patch b/core/iscsitarget/iscsitarget-0.4.15-isns-set-scn-flag.patch new file mode 100644 index 00000000..4db90793 --- /dev/null +++ b/core/iscsitarget/iscsitarget-0.4.15-isns-set-scn-flag.patch @@ -0,0 +1,20 @@ +http://bugs.gentoo.org/180619 + +--- a/usr/isns.c ++++ b/usr/isns.c +@@ -215,13 +215,13 @@ + + #if __BYTE_ORDER == __LITTLE_ENDIAN + #define set_scn_flag(x) \ +-{ \ ++({ \ + x = (x & 0x55555555) << 1 | (x & 0xaaaaaaaa) >> 1; \ + x = (x & 0x33333333) << 2 | (x & 0xcccccccc) >> 2; \ + x = (x & 0x0f0f0f0f) << 4 | (x & 0xf0f0f0f0) >> 4; \ + x = (x & 0x00ff00ff) << 8 | (x & 0xff00ff00) >> 8; \ + x = (x & 0x0000ffff) << 16 | (x & 0xffff0000) >> 16; \ +-} ++}) + #else + #define set_scn_flag(x) (x) + #endif |