aboutsummaryrefslogtreecommitdiff
path: root/lib/curl_setup.h
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2014-07-14 10:40:33 +0200
committerDan Fandrich <dan@coneharvesters.com>2014-07-14 20:11:08 +0200
commit08c8d5b89a24531addff8674fe241be7cf17b31d (patch)
tree39a0890d19b5bd649493cb3b5a88fa3dcf233d63 /lib/curl_setup.h
parenteb3e3833904e5db80c7cfcf940ae76a344ce0840 (diff)
build: set _POSIX_PTHREAD_SEMANTICS on Solaris to get proper getpwuid_r
Diffstat (limited to 'lib/curl_setup.h')
-rw-r--r--lib/curl_setup.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/curl_setup.h b/lib/curl_setup.h
index 4e18d670b..7618b5638 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. */