aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-06-08 11:21:57 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-06-08 11:21:57 +0200
commitffb9b251d979499a7cda5687c23699cad17cd0a2 (patch)
tree84136ce875dea1ebb99c17e9464a465f21c180e5 /include
parente72c6472dae434ff936eb4e3562512f9480f28fe (diff)
downloadcmocka-ffb9b251d979499a7cda5687c23699cad17cd0a2.tar.gz
cmocka-ffb9b251d979499a7cda5687c23699cad17cd0a2.tar.xz
cmocka-ffb9b251d979499a7cda5687c23699cad17cd0a2.zip
cmocka: Correctly dectect word size on sparc
Diffstat (limited to 'include')
-rw-r--r--include/cmocka.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cmocka.h b/include/cmocka.h
index b49dbf8..fc89f5c 100644
--- a/include/cmocka.h
+++ b/include/cmocka.h
@@ -56,7 +56,7 @@ int __stdcall IsDebuggerPresent();
/* If __WORDSIZE is not set, try to figure it out and default to 32 bit. */
#ifndef __WORDSIZE
-# if defined(__x86_64__) && !defined(__ILP32__)
+# if (defined(__x86_64__) && !defined(__ILP32__)) || defined(__sparc_v9__) || defined(__sparcv9)
# define __WORDSIZE 64
# else
# define __WORDSIZE 32