[LTP] [PATCH 2/2] msg_common.h: corrected __sparc64__ definition

Stanislav Kholmanskikh
2014-05-13T06:20:46Z

__sparc64__ is not defined by cpp. We should use
'__sparc__' and '__arch64__' instead.

Author: Jose E. Marchesi <jose.marchesi@oracle.com>

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
---
testcases/kernel/syscalls/utils/msg_common.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/testcases/kernel/syscalls/utils/msg_common.h b/testcases/kernel/syscalls/utils/msg_common.h
index 0471291..2ecd27e 100644
--- a/testcases/kernel/syscalls/utils/msg_common.h
+++ b/testcases/kernel/syscalls/utils/msg_common.h
@@ -26,7 +26,8 @@
#ifndef MSG_CMSG_COMPAT

#if defined(__powerpc64__) || defined(__mips64) || defined(__x86_64__) || \
- defined(__sparc64__) || defined(__ia64__) || defined(__s390x__)
+ defined(__ia64__) || defined(__s390x__) || \
+ defined(__sparc__) && defined(__arch64__)
#define MSG_CMSG_COMPAT 0x80000000
#else
#define MSG_CMSG_COMPAT 0
--
1.7.1

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."