Pārlūkot izejas kodu

Do changes in 8aa1db6 in other places which include signal.h

Tatsuhiro Tsujikawa 12 gadi atpakaļ
vecāks
revīzija
6b55f5d393
3 mainītis faili ar 21 papildinājumiem un 3 dzēšanām
  1. 7 1
      src/DownloadEngine.cc
  2. 7 1
      src/MultiUrlRequestInfo.cc
  3. 7 1
      src/main.cc

+ 7 - 1
src/DownloadEngine.cc

@@ -34,7 +34,13 @@
 /* copyright --> */
 #include "DownloadEngine.h"
 
-#include <signal.h>
+#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
 
 #include <cstring>
 #include <cerrno>

+ 7 - 1
src/MultiUrlRequestInfo.cc

@@ -34,7 +34,13 @@
 /* copyright --> */
 #include "MultiUrlRequestInfo.h"
 
-#include <signal.h>
+#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
 
 #include <cstring>
 #include <ostream>

+ 7 - 1
src/main.cc

@@ -34,7 +34,13 @@
 /* copyright --> */
 #include "common.h"
 
-#include <signal.h>
+#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
 #include <unistd.h>
 #include <getopt.h>