diff options
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | fdisks/cfdisk.c | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 12d0babf7..93572fe8a 100644 --- a/configure.ac +++ b/configure.ac @@ -497,6 +497,10 @@ AC_CHECK_TYPES([cpu_set_t], [have_cpu_set_t=yes], [], [[ AM_CONDITIONAL([HAVE_CPU_SET_T], [test "x$have_cpu_set_t" = xyes]) +AC_CHECK_TYPES([sighandler_t], [], [], [[ +#include <signal.h> +]]) + AC_CHECK_DECLS([CPU_ALLOC], [], [], [[ #include <sched.h> ]]) diff --git a/fdisks/cfdisk.c b/fdisks/cfdisk.c index 5007fc99e..bb324338a 100644 --- a/fdisks/cfdisk.c +++ b/fdisks/cfdisk.c @@ -324,7 +324,11 @@ int num_parts = 0; int logical = 0; long long logical_sectors[MAXIMUM_PARTS]; -__sighandler_t old_SIGINT, old_SIGTERM; +#ifdef HAVE_SIGHANDLER_T +sighandler_t old_SIGINT, old_SIGTERM; +#else +void (* old_SIGINT)(int), (* old_SIGTERM)(int); +#endif int arrow_cursor = FALSE; int display_units = MEGABYTES; |