From a17472ff2b723059841d194c19ad65b0d76b7860 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Tue, 11 Jan 2011 17:48:48 +0100 Subject: [PATCH] Fix unit tests for opensolaris --- tests/unittests/torture_misc.c | 3 +++ tests/unittests/torture_options.c | 1 + 2 files changed, 4 insertions(+) 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 #ifndef _WIN32 + +#define _POSIX_PTHREAD_SEMANTICS #include #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 #endif