libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 1/8] Rip out AC_TYPE_SIGNAL and sighandler_t ch


From: Tommi Rantala
Subject: [Libunwind-devel] [PATCH 1/8] Rip out AC_TYPE_SIGNAL and sighandler_t check
Date: Tue, 31 Jul 2012 23:06:27 +0300

AC_TYPE_SIGNAL is an obsolete autoconf macro, and we were not using
sighandler_t or RETSIGTYPE for anything anyways.
---
 configure.in        |    8 --------
 tests/Gtest-bt.c    |    4 ----
 tests/Gtest-trace.c |    4 ----
 3 files changed, 16 deletions(-)

diff --git a/configure.in b/configure.in
index 483d7d6..a1cf650 100644
--- a/configure.in
+++ b/configure.in
@@ -42,19 +42,12 @@ AC_CHECK_HEADERS(asm/ptrace_offsets.h endian.h sys/endian.h 
execinfo.h \
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 AC_C_INLINE
-AC_TYPE_SIGNAL
 AC_TYPE_SIZE_T
 AC_CHECK_SIZEOF(off_t)
 
 CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
 
 AC_CHECK_MEMBERS([struct dl_phdr_info.dlpi_subs],,,[#include <link.h>])
-AC_CHECK_TYPES([sighandler_t], [], [],
-[$ac_includes_default
-#if HAVE_SIGNAL_H
-# include <signal.h>
-#endif
-])
 AC_CHECK_TYPES([struct elf_prstatus, struct prstatus], [], [],
 [$ac_includes_default
 #if HAVE_SYS_PROCFS_H
@@ -76,7 +69,6 @@ PT_STEP, PT_SYSCALL], [], [],
 
 dnl Checks for library functions.
 AC_FUNC_MEMCMP
-AC_TYPE_SIGNAL
 AC_CHECK_FUNCS(dl_iterate_phdr dl_phdr_removals_counter dlmodinfo getunwind \
                ttrace mincore)
 is_gcc_m64() {
diff --git a/tests/Gtest-bt.c b/tests/Gtest-bt.c
index 1a40496..fb5b396 100644
--- a/tests/Gtest-bt.c
+++ b/tests/Gtest-bt.c
@@ -41,10 +41,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
SOFTWARE.  */
 #define panic(args...)                         \
        { fprintf (stderr, args); exit (-1); }
 
-#ifndef HAVE_SIGHANDLER_T
-typedef RETSIGTYPE (*sighandler_t) (int);
-#endif
-
 #define SIG_STACK_SIZE 0x100000
 
 int verbose;
diff --git a/tests/Gtest-trace.c b/tests/Gtest-trace.c
index b4c0bfc..a064b76 100644
--- a/tests/Gtest-trace.c
+++ b/tests/Gtest-trace.c
@@ -40,10 +40,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
SOFTWARE.  */
 #define panic(args...)                         \
        { fprintf (stderr, args); exit (-1); }
 
-#ifndef HAVE_SIGHANDLER_T
-typedef RETSIGTYPE (*sighandler_t) (int);
-#endif
-
 #define SIG_STACK_SIZE 0x100000
 
 int verbose;
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]