Преглед на файлове

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

Tatsuhiro Tsujikawa преди 12 години
родител
ревизия
6b55f5d393
променени са 3 файла, в които са добавени 21 реда и са изтрити 3 реда
  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>