Bläddra i källkod

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

Tatsuhiro Tsujikawa 12 år sedan
förälder
incheckning
0fa92911d7
1 ändrade filer med 7 tillägg och 0 borttagningar
  1. 7 0
      src/util.cc

+ 7 - 0
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