aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-02-12 10:08:22 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2010-02-12 10:08:22 +0100
commitbd47ff75ba0e375efc10fdd16eb869013ac65b20 (patch)
treea52b54b9715424df1ff63d464d6a8cd70a46b138
parent0016ded7f90e13fc50018d1fb2d4ad92f49aca17 (diff)
downloadlibssh-bd47ff75ba0e375efc10fdd16eb869013ac65b20.tar.gz
libssh-bd47ff75ba0e375efc10fdd16eb869013ac65b20.tar.xz
libssh-bd47ff75ba0e375efc10fdd16eb869013ac65b20.zip
Fix compilation of opensolaris
-rw-r--r--libssh/misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libssh/misc.c b/libssh/misc.c
index b94241a4..f64c395a 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