mirror of
https://salsa.debian.org/debian/dash.git
synced 2026-01-26 15:39:05 +00:00
[SIGNAL] Use bsd_signal if it exists and signal does not
klibc has bsd_signal instead of signal. So we will define signal as bsd_signal if 1) signal does not exist. 2) bsd_signal exists.
This commit is contained in:
parent
22e48cd66f
commit
90829c10d5
@ -4,6 +4,7 @@
|
||||
* Updated copyright.
|
||||
* Removed CVS IDs and inclusion of sys/cdefs.h.
|
||||
* Removed use of __P from error.h.
|
||||
* Use bsd_signal if it exists and signal does not.
|
||||
|
||||
2005-10-26 Herbert Xu <herbert@gondor.apana.org.au>
|
||||
|
||||
|
||||
@ -25,5 +25,13 @@ dnl Checks for header files.
|
||||
dnl Checks for library functions.
|
||||
AC_CHECK_FUNCS(mempcpy sigsetmask stpcpy strchrnul strtoimax strtoumax)
|
||||
|
||||
dnl Check for klibc signal.
|
||||
AC_CHECK_FUNC(signal)
|
||||
if test "$ac_cv_func_signal" != yes; then
|
||||
AC_CHECK_FUNC(bsd_signal,
|
||||
[AC_DEFINE(signal, bsd_signal,
|
||||
[klibc has bsd_signal instead of signal])])
|
||||
fi
|
||||
|
||||
AC_CONFIG_FILES([Makefile src/Makefile])
|
||||
AC_OUTPUT
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user