mirror of
https://repo.or.cz/socat.git
synced 2025-07-14 23:33:23 +00:00
Red Hat issue: socat 1.7.2.4 build failure missing linux/errqueue.h
This commit is contained in:
parent
59658d8267
commit
f749f5c3e4
4 changed files with 29 additions and 3 deletions
19
configure.in
19
configure.in
|
@ -81,7 +81,8 @@ AC_HEADER_RESOLV()
|
|||
AC_CHECK_HEADERS(termios.h linux/if_tun.h)
|
||||
AC_CHECK_HEADERS(net/if_dl.h)
|
||||
AC_CHECK_HEADERS(linux/types.h)
|
||||
AC_CHECK_HEADER(linux/errqueue.h, AC_DEFINE(HAVE_LINUX_ERRQUEUE_H), [], [#include <linux/types.h>])
|
||||
AC_CHECK_HEADER(linux/errqueue.h, AC_DEFINE(HAVE_LINUX_ERRQUEUE_H), [], [#include <sys/time.h>
|
||||
#include <linux/types.h>])
|
||||
AC_CHECK_HEADERS(sys/utsname.h sys/select.h sys/file.h)
|
||||
AC_CHECK_HEADERS(util.h bsd/libutil.h libutil.h sys/stropts.h regex.h)
|
||||
AC_CHECK_HEADERS(linux/fs.h linux/ext2_fs.h)
|
||||
|
@ -936,6 +937,22 @@ if test $sc_cv_type_sa_family_t = yes; then
|
|||
fi
|
||||
AC_MSG_RESULT($sc_cv_type_sa_family_t)
|
||||
|
||||
AC_MSG_CHECKING(for struct sock_extended_err)
|
||||
AC_CACHE_VAL(sc_cv_struct_sock_extended_err,
|
||||
[AC_TRY_COMPILE([#include <linux/types.h>
|
||||
#if TIME_WITH_SYS_TIME
|
||||
#include <sys/time.h>
|
||||
#endif
|
||||
#if HAVE_LINUX_ERRQUEUE_H
|
||||
#include <linux/errqueue.h>
|
||||
#endif],[struct sock_extended_err s;],
|
||||
[sc_cv_struct_sock_extended_err=yes],
|
||||
[sc_cv_struct_sock_extended_err=no])])
|
||||
if test $sc_cv_struct_sock_extended_err = yes; then
|
||||
AC_DEFINE(HAVE_STRUCT_SOCK_EXTENDED_ERR)
|
||||
fi
|
||||
AC_MSG_RESULT($sc_cv_struct_sock_extended_err)
|
||||
|
||||
AC_MSG_CHECKING(for struct sigaction.sa_sigaction)
|
||||
AC_CACHE_VAL(sc_cv_struct_sigaction_sa_sigaction,
|
||||
[AC_TRY_COMPILE([#include <signal.h>],[struct sigaction s;s.sa_sigaction=0;],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue