diff options
Diffstat (limited to 'tests/unittests')
-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 9df70bb..330a23e 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 d5da828..3a6d9f4 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 |