Jelajahi Sumber

Merge branch 'candidate-5.6.8' into candidate-6.0.6

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 8 tahun lalu
induk
melakukan
e027d5f8c6
1 mengubah file dengan 8 tambahan dan 0 penghapusan
  1. 8 0
      system/jlib/jdebug.cpp

+ 8 - 0
system/jlib/jdebug.cpp

@@ -2119,6 +2119,9 @@ public:
 
     bool reportUdpInfo(unsigned traceLevel)
     {
+#ifdef _WIN32
+        return false;
+#else
         if (uidCol==-1 && columnNames.length())
             return false;
         FILE *netfp = fopen("/proc/net/udp", "r");
@@ -2197,6 +2200,7 @@ public:
         }
         fclose(netfp);
         return true;
+#endif
     }
 private:
     MapPortToPortStats map;
@@ -2217,6 +2221,9 @@ public:
     }
     bool reportSnmpInfo()
     {
+#ifdef _WIN32
+        return false;
+#else
         if (inErrorsCol==-1 && columnNames.length())
             return false;
         FILE *netfp = fopen("/proc/net/snmp", "r");
@@ -2255,6 +2262,7 @@ public:
         }
         fclose(netfp);
         return ok;
+#endif
     }
 private:
     StringArray columnNames;