projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb3e383
)
build: set _POSIX_PTHREAD_SEMANTICS on Solaris to get proper getpwuid_r
author
Dan Fandrich
<dan@coneharvesters.com>
Mon, 14 Jul 2014 08:40:33 +0000
(10:40 +0200)
committer
Dan Fandrich
<dan@coneharvesters.com>
Mon, 14 Jul 2014 18:11:08 +0000
(20:11 +0200)
lib/curl_setup.h
patch
|
blob
|
history
diff --git
a/lib/curl_setup.h
b/lib/curl_setup.h
index 4e18d670b2289ac150757ceeb5ac65f2b39c707b..7618b56388ff8f1f2090c8bed6dd307afaa1909d 100644
(file)
--- 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. */