mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-05-28 17:41:28 +03:00
tests: fix pkd build breakages
Fix a build breakage when '-DWITH_SERVER=OFF' is set: skip building the pkd test for that case. Add some missing includes for the OpenIndiana and FreeBSD builds. Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
parent
cd2dc3770a
commit
a25790d343
@ -47,4 +47,6 @@ if (WITH_BENCHMARKS)
|
||||
add_subdirectory(benchmarks)
|
||||
endif (WITH_BENCHMARKS)
|
||||
|
||||
add_subdirectory(pkd)
|
||||
if (WITH_SERVER)
|
||||
add_subdirectory(pkd)
|
||||
endif (WITH_SERVER)
|
||||
|
@ -1,6 +1,6 @@
|
||||
project(pkd C)
|
||||
|
||||
if (UNIX AND NOT WIN32)
|
||||
if (WITH_SERVER AND UNIX AND NOT WIN32)
|
||||
|
||||
include_directories(
|
||||
${LIBSSH_PUBLIC_INCLUDE_DIRS}
|
||||
@ -32,4 +32,4 @@ set(pkd_libs
|
||||
add_executable(pkd_hello ${pkd_hello_src})
|
||||
target_link_libraries(pkd_hello ${pkd_libs})
|
||||
|
||||
endif (UNIX AND NOT WIN32)
|
||||
endif (WITH_SERVER AND UNIX AND NOT WIN32)
|
||||
|
@ -8,11 +8,14 @@
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <netinet/in.h>
|
||||
#include <pthread.h>
|
||||
#include <signal.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include <libssh/callbacks.h>
|
||||
#include <libssh/libssh.h>
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#include "pkd_client.h"
|
||||
#include "pkd_util.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user