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

Author: Jose E. Marchesi <jose.march...@oracle.com>
Author: Stanislav Kholmanskikh <stanislav.kholmansk...@oracle.com>

Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmansk...@oracle.com>
---
 testcases/kernel/syscalls/recvmsg/recvmsg01.c |    3 ++-
 testcases/kernel/syscalls/sendmsg/sendmsg01.c |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/testcases/kernel/syscalls/recvmsg/recvmsg01.c 
b/testcases/kernel/syscalls/recvmsg/recvmsg01.c
index bc84a23..102a268 100644
--- a/testcases/kernel/syscalls/recvmsg/recvmsg01.c
+++ b/testcases/kernel/syscalls/recvmsg/recvmsg01.c
@@ -45,7 +45,8 @@
 /* and this test to function correctly.                        */
 #ifndef MSG_CMSG_COMPAT
 
-#if defined (__powerpc64__) || defined (__mips64) || defined (__x86_64__) || 
defined (__sparc64__)
+#if defined(__powerpc64__) || defined(__mips64) || defined(__x86_64__) || \
+       defined(__sparc__) && defined(__arch64__)
 #define MSG_CMSG_COMPAT 0x80000000
 #else
 #define MSG_CMSG_COMPAT 0
diff --git a/testcases/kernel/syscalls/sendmsg/sendmsg01.c 
b/testcases/kernel/syscalls/sendmsg/sendmsg01.c
index 58d3364..9e5d4f2 100644
--- a/testcases/kernel/syscalls/sendmsg/sendmsg01.c
+++ b/testcases/kernel/syscalls/sendmsg/sendmsg01.c
@@ -37,7 +37,8 @@
  */
 #ifndef MSG_CMSG_COMPAT
 #if defined(__powerpc64__) || defined(__mips64) || defined(__x86_64__) || \
-     defined(__sparc64__) || defined(__ia64__) || defined(__s390x__)
+       defined(__sparc__) && defined(__arch64__) || defined(__ia64__) || \
+       defined(__s390x__)
 #define MSG_CMSG_COMPAT 0x80000000
 #else
 #define MSG_CMSG_COMPAT 0
-- 
1.7.1


------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to