Przeglądaj źródła

OSX (now) needs signal.h for sigaction

Nils Maier 12 lat temu
rodzic
commit
b7ef53b13d
1 zmienionych plików z 3 dodań i 4 usunięć
  1. 3 4
      src/util.cc

+ 3 - 4
src/util.cc

@@ -42,11 +42,10 @@
 #else // !__sun
 #ifdef HAVE_SYS_SIGNAL_H
 #  include <sys/signal.h>
-#else // HAVE_SYS_SIGNAL_H
-#  ifdef HAVE_SIGNAL_H
-#    include <signal.h>
-#  endif // HAVE_SIGNAL_H
 #endif // HAVE_SYS_SIGNAL_H
+#ifdef HAVE_SIGNAL_H
+#  include <signal.h>
+#endif // HAVE_SIGNAL_H
 #endif // !__sun
 
 #include <sys/types.h>