diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2013-12-15 19:49:59 -0500 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2013-12-16 09:41:52 -0500 |
commit | 2c0a7840a28ae696e80e73157856d7a049fdf6c7 (patch) | |
tree | bc0e9b6c2594a99a241d9d25c75f77133b03d5d4 | |
parent | 87547e43189301e3dd42feb9d7ff32a75d0e727f (diff) |
xtrans.m4: remove AC_TYPE_SIGNAL and Imake SIGNALRETURNSINT
Assume signal handlers return void, as C89 requires
Drops use of autoconf's obsolete AC_TYPE_SIGNAL and Imake's even more
obsolete SIGNALRETURNSINT.
None of the modules including xtrans.m4 uses RETSIGTYPE from autoconf.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r-- | Xtransutil.c | 14 | ||||
-rw-r--r-- | xtrans.m4 | 1 |
2 files changed, 1 insertions, 14 deletions
diff --git a/Xtransutil.c b/Xtransutil.c index a6928bb..63f0fc3 100644 --- a/Xtransutil.c +++ b/Xtransutil.c @@ -306,24 +306,12 @@ static jmp_buf env; #ifdef SIGALRM static volatile int nameserver_timedout = 0; -static -#ifdef RETSIGTYPE /* set by autoconf AC_TYPE_SIGNAL */ -RETSIGTYPE -#else /* Imake */ -#ifdef SIGNALRETURNSINT -int -#else -void -#endif -#endif +static void nameserver_lost(int sig _X_UNUSED) { nameserver_timedout = 1; longjmp (env, -1); /* NOTREACHED */ -#ifdef SIGNALRETURNSINT - return -1; /* for picky compilers */ -#endif } #endif /* SIGALARM */ @@ -100,7 +100,6 @@ AC_INCLUDES_DEFAULT # that use Xtrans functions AC_DEFUN([XTRANS_CONNECTION_FLAGS],[ AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_TYPE_SIGNAL]) [case $host_os in mingw*) unixdef="no" ;; *) unixdef="yes" ;; |