summaryrefslogtreecommitdiffstats
path: root/libssh/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/misc.c')
-rw-r--r--libssh/misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libssh/misc.c b/libssh/misc.c
index b94241a..f64c395 100644
--- a/libssh/misc.c
+++ b/libssh/misc.c
@@ -38,6 +38,8 @@
#include <shlobj.h>
#include <direct.h>
#else
+/* This is needed for a standard getpwuid_r on opensolaris */
+#define _POSIX_PTHREAD_SEMANTICS
#include <pwd.h>
#include <arpa/inet.h>
#endif