diff options
author | NIIBE Yutaka <[email protected]> | 2016-03-03 23:23:27 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2016-03-03 23:23:27 +0000 |
commit | f7a77c5c236ecec846de9be46703026f9b01008f (patch) | |
tree | 5b721eb89946a32355f523a3a6d1b5805d4e973b | |
parent | For Solaris, add -lrt correctly. (diff) | |
download | libgpg-error-f7a77c5c236ecec846de9be46703026f9b01008f.tar.gz libgpg-error-f7a77c5c236ecec846de9be46703026f9b01008f.zip |
Fix detecting Solaris operating system.
* src/gen-posix-lock-obj.c (USE_DOUBLE_FOR_ALIGNMENT): Check for
the macro __sun.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
This fixes commit 5168b97 and 34b0714.
Thanks to Ibraheem Saleh and Thomas Klausner for testing.
Thanks to Tom G. Christensen for suggesting the fix with the
useful link: https://sourceforge.net/p/predef/wiki/Home/
Thanks to Nelson H. F. Beebe to inform the tool:
http://www.math.utah.edu/~beebe/cc-defs
GnuPG-bug-id: 2144
-rw-r--r-- | src/gen-posix-lock-obj.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gen-posix-lock-obj.c b/src/gen-posix-lock-obj.c index 5efc930..79b56de 100644 --- a/src/gen-posix-lock-obj.c +++ b/src/gen-posix-lock-obj.c @@ -43,7 +43,8 @@ #endif /* Special requirements for certain platforms. */ -#if defined(__solaris__) && !defined (__LP64__) && !defined(_LP64) +#if defined(__sun) && !defined (__LP64__) && !defined(_LP64) +/* Solaris on 32-bit architecture. */ # define USE_DOUBLE_FOR_ALIGNMENT 1 #else # define USE_DOUBLE_FOR_ALIGNMENT 0 |