Skip to content
Snippets Groups Projects
Commit 15c2473e authored by Ilya Petrov's avatar Ilya Petrov Committed by Matthias Grob
Browse files

mavlink_main.cpp - add fix for Cygwin (Windows)

fix for issue https://github.com/PX4/Firmware/issues/11030 - "getting required buffer size failed" on jmavsim simulation on Windows 10
parent c9d32578
No related branches found
No related tags found
No related merge requests found
......@@ -941,7 +941,7 @@ Mavlink::find_broadcast_address()
struct ifconf ifconf;
int ret;
#if defined(__APPLE__) && defined(__MACH__)
#if defined(__APPLE__) && defined(__MACH__) || defined(__CYGWIN__)
// On Mac, we can't determine the required buffer
// size in advance, so we just use what tends to work.
ifconf.ifc_len = 1024;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment