Kaynağa Gözat

Fixed compile error

Tatsuhiro Tsujikawa 14 yıl önce
ebeveyn
işleme
60a21e672c
2 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 1 0
      src/PollEventPoll.cc
  2. 2 1
      src/SelectEventPoll.cc

+ 1 - 0
src/PollEventPoll.cc

@@ -43,6 +43,7 @@
 #include "Logger.h"
 #include "a2functional.h"
 #include "fmt.h"
+#include "util.h"
 
 namespace aria2 {
 

+ 2 - 1
src/SelectEventPoll.cc

@@ -46,6 +46,7 @@
 #include "Logger.h"
 #include "a2functional.h"
 #include "fmt.h"
+#include "util.h"
 
 namespace aria2 {
 
@@ -213,7 +214,7 @@ void SelectEventPoll::poll(const struct timeval& tv)
       }
       (*i)->processEvents(events);
     }
-  } else if(res == -1) {
+  } else if(retval == -1) {
     int errNum = errno;
     A2_LOG_INFO(fmt("select error: %s", util::safeStrerror(errNum).c_str()));
   }