diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-03-17 15:42:50 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-03-17 15:42:50 +0900 |
| commit | 0fa92911d7b81df6e8942ad0059c22b66d833693 (patch) | |
| tree | 07ae275f7111ae2cd24a1887845c007531a8db32 | |
| parent | 0741a14486b4c464251d4452cd36672c452c590b (diff) | |
util.cc: Include only signal.h for opensolaris build
| -rw-r--r-- | src/util.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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 <signal.h> +#endif // HAVE_SIGNAL_H +#else // !__sun #ifdef HAVE_SYS_SIGNAL_H # include <sys/signal.h> #else // HAVE_SYS_SIGNAL_H @@ -41,6 +47,7 @@ # include <signal.h> # endif // HAVE_SIGNAL_H #endif // HAVE_SYS_SIGNAL_H +#endif // !__sun #include <sys/types.h> #ifdef HAVE_PWD_H |
