mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 02:55:07 +08:00
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:
committed by
Matthias Grob
parent
c9d32578e3
commit
15c2473eda
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user