diff --git a/pcsx2/DEV9/sockets.cpp b/pcsx2/DEV9/sockets.cpp index 7ff5ff1c8f..e6ee824f58 100644 --- a/pcsx2/DEV9/sockets.cpp +++ b/pcsx2/DEV9/sockets.cpp @@ -493,6 +493,13 @@ bool SocketAdapter::GetIfAutoAdapter(ifaddrs* adapter, ifaddrs** buffer) if (gateways.size() > 0) hasGateway = true; + +#elif defined(__FreeBSD__) || (__APPLE__) + std::vector gateways = InternalServers::DHCP_Server::GetGatewaysBSD(pAdapter->ifa_name); + + if (gateways.size() > 0) + hasGateway = true; + #else Console.Error("DHCP: Unsupported OS, can't find Gateway"); #endif