mirror of
https://repo.or.cz/socat.git
synced 2025-07-15 15:43:24 +00:00
Made code async-signal-safe
This commit is contained in:
parent
e4c6f3d934
commit
2af0495cc6
25 changed files with 1707 additions and 625 deletions
|
@ -764,6 +764,8 @@ if test $sc_cv_type_longlong = yes; then
|
|||
fi
|
||||
AC_MSG_RESULT($sc_cv_type_longlong)
|
||||
|
||||
AC_CHECK_TYPE(sig_atomic_t,AC_DEFINE(HAVE_TYPE_SIG_ATOMIC_T),,[#include "sysincludes.h"])
|
||||
|
||||
# following builtin macro does not check unistd.h and sys/socket.h where
|
||||
# socklen_t might be defined
|
||||
#AC_CHECK_TYPE(socklen_t, int)
|
||||
|
@ -1316,6 +1318,9 @@ AC_CHECK_LIB(bsd, openpty,
|
|||
AC_CHECK_LIB(util, openpty,
|
||||
[LIBS="-lutil $LIBS"; AC_DEFINE(HAVE_OPENPTY)])
|
||||
|
||||
AC_CHECK_LIB(rt, clock_gettime,
|
||||
[LIBS="-lrt $LIBS"; AC_DEFINE(HAVE_CLOCK_GETTIME)])
|
||||
|
||||
dnl Search for flock()
|
||||
# with Linux it's in libc, with AIX in libbsd
|
||||
AC_CHECK_FUNC(flock, AC_DEFINE(HAVE_FLOCK),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue