mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 10:26:47 +09:00
Change include order in unittest files
The tests are compiled without -D_GNU_SOURCE, therefore the XSI version of strerror_r is used. Defining _GNU_SOURCE in torture.h then including *.c gives error because it is assuming GNU version of strerror_r in the source file. Signed-off-by: Norbert Pocs <npocs@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
2abd4bfb6c
commit
b6a4330fe4
@@ -4,10 +4,10 @@
|
||||
|
||||
#define LIBSSH_STATIC
|
||||
#include <libssh/priv.h>
|
||||
#include "torture.h"
|
||||
|
||||
#include "knownhosts.c"
|
||||
|
||||
#include "torture.h"
|
||||
#if (defined _WIN32) || (defined _WIN64)
|
||||
#ifndef S_IRWXO
|
||||
#define S_IRWXO 0
|
||||
|
||||
Reference in New Issue
Block a user