From f7a77c5c236ecec846de9be46703026f9b01008f Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Fri, 4 Mar 2016 08:23:27 +0900 Subject: 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 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(-) (limited to 'src/gen-posix-lock-obj.c') 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 -- cgit v1.2.3