mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
configure: drop siginterrupt
Not used anymore
This commit is contained in:
parent
e416d84e10
commit
5b787a24f0
11
configure
vendored
11
configure
vendored
@ -5563,17 +5563,6 @@ else
|
||||
fi
|
||||
done
|
||||
|
||||
for ac_func in siginterrupt
|
||||
do :
|
||||
ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
|
||||
if test "x$ac_cv_func_siginterrupt" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_SIGINTERRUPT 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
done
|
||||
|
||||
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
||||
# for constant arguments. Useless!
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
|
||||
|
@ -134,7 +134,6 @@ AC_CHECK_FUNCS([ftruncate gethostname getpagesize \
|
||||
gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
|
||||
strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
|
||||
strstr strtol strtoul uname], , [AC_MSG_ERROR(bailing out)])
|
||||
AC_CHECK_FUNCS(siginterrupt)
|
||||
AC_FUNC_ALLOCA
|
||||
AC_FUNC_CLOSEDIR_VOID
|
||||
AC_FUNC_CHOWN
|
||||
|
@ -288,9 +288,6 @@
|
||||
/* Define to 1 if you have the `setlocale' function. */
|
||||
#undef HAVE_SETLOCALE
|
||||
|
||||
/* Define to 1 if you have the `siginterrupt' function. */
|
||||
#undef HAVE_SIGINTERRUPT
|
||||
|
||||
/* Define to 1 if you have the <signal.h> header file. */
|
||||
#undef HAVE_SIGNAL_H
|
||||
|
||||
|
@ -37,19 +37,4 @@ int read_urandom(void *buf, size_t len);
|
||||
*/
|
||||
unsigned lvm_even_rand(unsigned *seed, unsigned max);
|
||||
|
||||
# ifndef HAVE_SIGINTERRUPT
|
||||
# define siginterrupt(sig, flag) \
|
||||
do { \
|
||||
int ret; \
|
||||
struct sigaction act; \
|
||||
(void) sigaction(sig, NULL, &act); \
|
||||
if (flag) \
|
||||
act.sa_flags &= SA_RESTART; \
|
||||
else \
|
||||
act.sa_flags |= SA_RESTART; \
|
||||
ret = sigaction(sig, &act, NULL); \
|
||||
return ret; \
|
||||
while (0)
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user