Quellcode durchsuchen

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

Tatsuhiro Tsujikawa vor 12 Jahren
Ursprung
Commit
6b55f5d393
3 geänderte Dateien mit 21 neuen und 3 gelöschten Zeilen
  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>