From cc109b9d25d04acb4f4034566a8eb205027eadf6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 31 Jan 2024 16:55:19 +0100 Subject: [PATCH] windows compilation --- src/core/networking/VRPing.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/networking/VRPing.cpp b/src/core/networking/VRPing.cpp index e2f6175ab..ad46f7328 100644 --- a/src/core/networking/VRPing.cpp +++ b/src/core/networking/VRPing.cpp @@ -1,6 +1,8 @@ #include "VRPing.h" #include "core/utils/toString.h" +#ifndef _WIN32 #include "VRARP.h" +#endif #include #include @@ -107,7 +109,11 @@ FILE *popen(const char *command, const char *type) { return 0; } #endif std::string OSG::VRPing::getMAC(std::string IP, std::string interface) { +#ifndef _WIN32 return ::getMAC(IP, interface); +#else + return ""; +#endif }