From 0fa92911d7b81df6e8942ad0059c22b66d833693 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 17 Mar 2013 15:42:50 +0900 Subject: [PATCH] util.cc: Include only signal.h for opensolaris build --- src/util.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util.cc b/src/util.cc index 73834637..9954580d 100644 --- a/src/util.cc +++ b/src/util.cc @@ -34,6 +34,12 @@ /* copyright --> */ #include "util.h" +#ifdef __sun +// For opensolaris, just include signal.h which includes sys/signal.h +#ifdef HAVE_SIGNAL_H +# include +#endif // HAVE_SIGNAL_H +#else // !__sun #ifdef HAVE_SYS_SIGNAL_H # include #else // HAVE_SYS_SIGNAL_H @@ -41,6 +47,7 @@ # include # endif // HAVE_SIGNAL_H #endif // HAVE_SYS_SIGNAL_H +#endif // !__sun #include #ifdef HAVE_PWD_H