Переглянути джерело

Merge pull request #9059 from ghalliday/issue16173b

HPCC-16173 Fix windows compile error

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 8 роки тому
батько
коміт
5948ddad3d
1 змінених файлів з 8 додано та 0 видалено
  1. 8 0
      system/jlib/jdebug.cpp

+ 8 - 0
system/jlib/jdebug.cpp

@@ -2040,6 +2040,9 @@ public:
 
 
     bool reportUdpInfo(unsigned traceLevel)
     bool reportUdpInfo(unsigned traceLevel)
     {
     {
+#ifdef _WIN32
+        return false;
+#else
         if (uidCol==-1 && columnNames.length())
         if (uidCol==-1 && columnNames.length())
             return false;
             return false;
         FILE *netfp = fopen("/proc/net/udp", "r");
         FILE *netfp = fopen("/proc/net/udp", "r");
@@ -2118,6 +2121,7 @@ public:
         }
         }
         fclose(netfp);
         fclose(netfp);
         return true;
         return true;
+#endif
     }
     }
 private:
 private:
     MapPortToPortStats map;
     MapPortToPortStats map;
@@ -2138,6 +2142,9 @@ public:
     }
     }
     bool reportSnmpInfo()
     bool reportSnmpInfo()
     {
     {
+#ifdef _WIN32
+        return false;
+#else
         if (inErrorsCol==-1 && columnNames.length())
         if (inErrorsCol==-1 && columnNames.length())
             return false;
             return false;
         FILE *netfp = fopen("/proc/net/snmp", "r");
         FILE *netfp = fopen("/proc/net/snmp", "r");
@@ -2176,6 +2183,7 @@ public:
         }
         }
         fclose(netfp);
         fclose(netfp);
         return ok;
         return ok;
+#endif
     }
     }
 private:
 private:
     StringArray columnNames;
     StringArray columnNames;