[PATCH] ioctlsort: check ppc hosts too
Mike Frysinger
vapier at gentoo.org
Wed Oct 7 05:05:10 UTC 2009
* linux/ioctlsort.c: Check for __powerpc__.
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
this fixes behavior when ioctlsort.c is built manually on the command line
linux/ioctlsort.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/linux/ioctlsort.c b/linux/ioctlsort.c
index f544d84..0862b2e 100644
--- a/linux/ioctlsort.c
+++ b/linux/ioctlsort.c
@@ -35,7 +35,7 @@ int compare(const void* a, const void* b) {
int main(int argc, char** argv) {
int i;
-#ifdef POWERPC /* unspeakable kludge */
+#if defined(POWERPC) || defined(__powerpc__) /* unspeakable kludge */
for (i = 0; i < nioctls; i++)
ioctls[i].code &= ~_IOC_DIRMASK;
#endif
--
1.6.5.rc2
More information about the Strace-devel
mailing list