From 60f05338216ecd819fe9889124b4d40049d830cb Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 31 Jul 2006 06:26:59 +1000 Subject: [PATCH] Include siginfo.h in all signal-using files to make Solaris happy. Thanks to Netocrat for the report and a description of the solution. darcs-hash:20060730202659-ac50b-1840aff40ec2467242bd107676c7426cdb14f643.gz --- common.c | 4 ++++ configure.ac | 2 +- exec.c | 4 ++++ proc.c | 3 +++ reader.c | 4 ++++ signal.c | 4 ++++ 6 files changed, 20 insertions(+), 1 deletion(-) diff --git a/common.c b/common.c index 97b9b7a65..cd7323440 100644 --- a/common.c +++ b/common.c @@ -13,6 +13,10 @@ parts of fish. #include #endif +#ifdef HAVE_SIGINFO_H +#include +#endif + #include #include #include diff --git a/configure.ac b/configure.ac index 73b75138c..e4ce5d353 100644 --- a/configure.ac +++ b/configure.ac @@ -250,7 +250,7 @@ AC_SEARCH_LIBS( nanosleep, rt, , [AC_MSG_ERROR([Cannot find the rt library, need AC_SEARCH_LIBS( setupterm, [ncurses curses], , [AC_MSG_ERROR([Could not find a curses implementation, needed to build fish])] ) # Check for presense of various header files -AC_CHECK_HEADERS([getopt.h termio.h sys/resource.h term.h ncurses/term.h libintl.h ncurses.h curses.h stropts.h]) +AC_CHECK_HEADERS([getopt.h termio.h sys/resource.h term.h ncurses/term.h libintl.h ncurses.h curses.h stropts.h siginfo.h]) AC_CHECK_HEADER([regex.h], [AC_DEFINE([HAVE_REGEX_H], [1], [Define to 1 if you have the header file.])], diff --git a/exec.c b/exec.c index 17e3f9cd3..9fda54d21 100644 --- a/exec.c +++ b/exec.c @@ -21,6 +21,10 @@ #include #include +#ifdef HAVE_SIGINFO_H +#include +#endif + #include "config.h" #include "fallback.h" diff --git a/proc.c b/proc.c index 4c5e50dff..bf6cbfdfa 100644 --- a/proc.c +++ b/proc.c @@ -42,6 +42,9 @@ Some of the code in this file is based on code from the Glibc manual. #include #endif +#ifdef HAVE_SIGINFO_H +#include +#endif #include "fallback.h" #include "util.h" diff --git a/reader.c b/reader.c index bca8bf864..3a5b69c4d 100644 --- a/reader.c +++ b/reader.c @@ -51,6 +51,10 @@ commence. #include #endif +#ifdef HAVE_SIGINFO_H +#include +#endif + #include #include #include diff --git a/signal.c b/signal.c index 1cd6e8830..204ab2ee2 100644 --- a/signal.c +++ b/signal.c @@ -15,6 +15,10 @@ The library for various signal related issues #include #include +#ifdef HAVE_SIGINFO_H +#include +#endif + #include "common.h" #include "fallback.h" #include "util.h"