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
This commit is contained in:
Ilya Petrov
2018-12-14 11:26:08 +04:00
committed by Matthias Grob
parent c9d32578e3
commit 15c2473eda
+1 -1
View File
@@ -941,7 +941,7 @@ Mavlink::find_broadcast_address()
struct ifconf ifconf; struct ifconf ifconf;
int ret; int ret;
#if defined(__APPLE__) && defined(__MACH__) #if defined(__APPLE__) && defined(__MACH__) || defined(__CYGWIN__)
// On Mac, we can't determine the required buffer // On Mac, we can't determine the required buffer
// size in advance, so we just use what tends to work. // size in advance, so we just use what tends to work.
ifconf.ifc_len = 1024; ifconf.ifc_len = 1024;