[Pkg-gnupg-commit] [libgpg-error] 13/35: Fix detecting Solaris operating system.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Apr 25 21:47:12 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository libgpg-error.

commit f7a77c5c236ecec846de9be46703026f9b01008f
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Fri Mar 4 08:23:27 2016 +0900

    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 <gniibe at fsij.org>
    
    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
---
 src/gen-posix-lock-obj.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libgpg-error.git



More information about the Pkg-gnupg-commit mailing list