Remove the select.h header from examples if autoconf cannot find it.

pull/269/head
John Safranek 2020-07-22 15:25:08 -07:00
parent 2bf3d5bd87
commit 2be3f15106
No known key found for this signature in database
GPG Key ID: 8CE817DE0D3CCB4A
4 changed files with 13 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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