From: Dan Fandrich Date: Mon, 14 Jul 2014 08:40:33 +0000 (+0200) Subject: build: set _POSIX_PTHREAD_SEMANTICS on Solaris to get proper getpwuid_r X-Git-Tag: curl-7_37_1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08c8d5b89a24531addff8674fe241be7cf17b31d;p=thirdparty%2Fcurl.git build: set _POSIX_PTHREAD_SEMANTICS on Solaris to get proper getpwuid_r --- diff --git a/lib/curl_setup.h b/lib/curl_setup.h index 4e18d670b2..7618b56388 100644 --- a/lib/curl_setup.h +++ b/lib/curl_setup.h @@ -112,6 +112,13 @@ # endif #endif +/* Solaris needs this to get a POSIX-conformant getpwuid_r */ +#if defined(sun) || defined(__sun) +# ifndef _POSIX_PTHREAD_SEMANTICS +# define _POSIX_PTHREAD_SEMANTICS 1 +# endif +#endif + /* ================================================================ */ /* If you need to include a system header file for your platform, */ /* please, do it beyond the point further indicated in this file. */