diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-01-11 17:48:48 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-01-11 17:55:12 +0100 |
commit | a17472ff2b723059841d194c19ad65b0d76b7860 (patch) | |
tree | 0ca25905ccd950cd93ee071276dfc26a5b538086 /tests | |
parent | 7fbb926c0bf64e385bfec5c8db86d24b2c049a26 (diff) | |
download | libssh-a17472ff2b723059841d194c19ad65b0d76b7860.tar.gz libssh-a17472ff2b723059841d194c19ad65b0d76b7860.tar.xz libssh-a17472ff2b723059841d194c19ad65b0d76b7860.zip |
Fix unit tests for opensolaris
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/torture_misc.c | 3 | ||||
-rw-r--r-- | tests/unittests/torture_options.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/unittests/torture_misc.c b/tests/unittests/torture_misc.c index 9df70bbc..330a23ef 100644 --- a/tests/unittests/torture_misc.c +++ b/tests/unittests/torture_misc.c @@ -1,5 +1,8 @@ + #include <sys/types.h> #ifndef _WIN32 + +#define _POSIX_PTHREAD_SEMANTICS #include <pwd.h> #endif diff --git a/tests/unittests/torture_options.c b/tests/unittests/torture_options.c index d5da8288..3a6d9f45 100644 --- a/tests/unittests/torture_options.c +++ b/tests/unittests/torture_options.c @@ -1,6 +1,7 @@ #define LIBSSH_STATIC #ifndef _WIN32 +#define _POSIX_PTHREAD_SEMANTICS # include <pwd.h> #endif |