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
John Safranek 2020-04-24 13:39:35 -07:00
parent 0ea40ec85f
commit 722c3bc082
No known key found for this signature in database
GPG Key ID: 8CE817DE0D3CCB4A
2 changed files with 5 additions and 2 deletions

View File

@ -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/ .])])

View File

@ -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 {