forked from mirrors/tftp-hpa-google
Modernize: use sigaction() whenever possible. Remove uses of common.
bsd_signal() may not be defined, and there is really no reason to even try to use it if sigaction() is avaiable; using sigaction() guarantees the semantics we really want. Replace uses of common variables with explicit instantiation and extern declarations in a header file. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
9c0908a778
commit
1f4b33a1f7
9 changed files with 64 additions and 42 deletions
|
@ -89,6 +89,9 @@ AC_CHECK_FUNCS(setreuid)
|
|||
AC_CHECK_FUNCS(setregid)
|
||||
AC_CHECK_FUNCS(initgroups)
|
||||
AC_CHECK_FUNCS(setgroups)
|
||||
AC_CHECK_FUNCS(sigaction)
|
||||
AC_CHECK_FUNCS(bsd_signal)
|
||||
AC_CHECK_TYPES(sighandler_t)
|
||||
|
||||
dnl Solaris 8 has [u]intmax_t but not strtoumax(). How utterly braindamaged.
|
||||
AC_CHECK_FUNCS(strtoumax)
|
||||
|
@ -120,7 +123,6 @@ OBJROOT=`pwd`
|
|||
XTRA=false
|
||||
PA_SEARCH_LIBS_AND_ADD(xmalloc, iberty)
|
||||
PA_SEARCH_LIBS_AND_ADD(xstrdup, iberty)
|
||||
PA_SEARCH_LIBS_AND_ADD(bsd_signal, bsd, bsdsignal)
|
||||
PA_SEARCH_LIBS_AND_ADD(getopt_long, getopt, getopt_long)
|
||||
PA_SEARCH_LIBS_AND_ADD(getaddrinfo, [nsl resolv])
|
||||
if $pa_add_getaddrinfo
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue