util.cc: Include only signal.h for opensolaris build

pull/60/head
Tatsuhiro Tsujikawa 2013-03-17 15:42:50 +09:00
parent 0741a14486
commit 0fa92911d7
1 changed files with 7 additions and 0 deletions

View File

@ -34,6 +34,12 @@
/* copyright --> */ /* copyright --> */
#include "util.h" #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 #ifdef HAVE_SYS_SIGNAL_H
# include <sys/signal.h> # include <sys/signal.h>
#else // HAVE_SYS_SIGNAL_H #else // HAVE_SYS_SIGNAL_H
@ -41,6 +47,7 @@
# include <signal.h> # include <signal.h>
# endif // HAVE_SIGNAL_H # endif // HAVE_SIGNAL_H
#endif // HAVE_SYS_SIGNAL_H #endif // HAVE_SYS_SIGNAL_H
#endif // !__sun
#include <sys/types.h> #include <sys/types.h>
#ifdef HAVE_PWD_H #ifdef HAVE_PWD_H