瀏覽代碼

Fix linux build

xcbosa-itx 2 年之前
父節點
當前提交
5c4bb98c68
共有 5 個文件被更改,包括 6 次插入2 次删除
  1. 1 0
      frp.h
  2. 1 0
      httpserver/httpserver-private.h
  3. 1 0
      processor/processor-private.h
  4. 2 2
      utils/BinaryResponseData.cpp
  5. 1 0
      utils/utils-private.h

+ 1 - 0
frp.h

@@ -6,6 +6,7 @@
 
 #include <string>
 #include <set>
+#include <functional>
 
 using namespace std;
 using namespace xc;

+ 1 - 0
httpserver/httpserver-private.h

@@ -17,6 +17,7 @@
 #include <netinet/in.h>
 #include <unistd.h>
 #include <time.h>
+#include <functional>
 #include "../webui.h"
 
 using namespace std;

+ 1 - 0
processor/processor-private.h

@@ -14,6 +14,7 @@
 #include <sstream>
 #include <fstream>
 #include <unistd.h>
+#include <functional>
 #include "../thirdparty/configor/json.hpp"
 
 #include "../utils/utils.h"

+ 2 - 2
utils/BinaryResponseData.cpp

@@ -69,7 +69,7 @@ namespace xc {
                     }
                     ::fprintf(fp, "0\r\n\r\n");
                 } else {
-                    cerr << "[FileIOError]: " << ::strerror(errno) << endl;
+                    cerr << "[FileIOError]: " << strerror(errno) << endl;
                 }
             }
             ::fflush(fp);
@@ -94,7 +94,7 @@ namespace xc {
                         }
                     }
                 } else {
-                    cerr << "[FileIOError]: " << ::strerror(errno) << endl;
+                    cerr << "[FileIOError]: " << strerror(errno) << endl;
                 }
             }
         }

+ 1 - 0
utils/utils-private.h

@@ -12,6 +12,7 @@
 #include <mutex>
 #include <sstream>
 #include <fstream>
+#include <functional>
 
 using namespace std;