mirror of https://github.com/wolfSSL/wolfssh.git
Release Rollup
1. Wrap the include of sys/time.h in wolfscp.h with a check of configure's HAVE_SYS_TIME_H. 2. Add a header check to the configure script.pull/254/head
parent
0ea40ec85f
commit
722c3bc082
|
@ -56,6 +56,7 @@ AC_CHECK_SIZEOF([off_t])
|
|||
|
||||
# Check headers/libs
|
||||
AC_CHECK_FUNCS([gethostbyname getaddrinfo gettimeofday inet_ntoa memset socket])
|
||||
AC_CHECK_HEADERS([sys/time.h])
|
||||
AC_CHECK_LIB([network],[socket])
|
||||
AC_CHECK_LIB([wolfssl],[wolfCrypt_Init],,[AC_MSG_ERROR([libwolfssl is required for ${PACKAGE}. It can be obtained from https://www.wolfssl.com/download.html/ .])])
|
||||
|
||||
|
|
|
@ -53,8 +53,10 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#if !defined(WOLFSSH_SCP_USER_CALLBACKS) && !defined(NO_FILESYSTEM)
|
||||
/* for utimes() */
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
#ifdef HAVE_SYS_TIME_H
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#include <errno.h>
|
||||
|
||||
typedef struct ScpSendCtx {
|
||||
|
|
Loading…
Reference in New Issue