mirror of https://github.com/wolfSSL/wolfssh.git
Remove the select.h header from examples if autoconf cannot find it.
parent
2bf3d5bd87
commit
2be3f15106
|
@ -53,7 +53,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 pty.h util.h termios.h])
|
||||
AC_CHECK_HEADERS([sys/select.h sys/time.h pty.h util.h termios.h])
|
||||
AC_CHECK_LIB([network],[socket])
|
||||
AC_CHECK_LIB([util],[forkpty])
|
||||
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/ .])])
|
||||
|
|
|
@ -51,7 +51,9 @@
|
|||
#include <sys/un.h>
|
||||
#endif /* WOLFSSH_AGENT */
|
||||
|
||||
#include <sys/select.h>
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef NO_WOLFSSH_CLIENT
|
||||
|
|
|
@ -77,7 +77,9 @@
|
|||
#include <sys/un.h>
|
||||
#endif /* WOLFSSH_AGENT */
|
||||
|
||||
#include <sys/select.h>
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef NO_WOLFSSH_SERVER
|
||||
|
|
|
@ -23,9 +23,13 @@
|
|||
|
||||
|
||||
#include <stdio.h>
|
||||
#include <termios.h>
|
||||
#ifdef HAVE_TERMIOS_H
|
||||
#include <termios.h>
|
||||
#endif
|
||||
#include <errno.h>
|
||||
#include <sys/select.h>
|
||||
#ifdef HAVE_SYS_SELECT_H
|
||||
#include <sys/select.h>
|
||||
#endif
|
||||
#include <wolfssh/ssh.h>
|
||||
#include <wolfssh/test.h>
|
||||
#include <wolfssh/port.h>
|
||||
|
|
Loading…
Reference in New Issue