freebsd_wlan: Fix compilation of ieee80211_ioctl.h under GCC2 in C mode.

GCC2 tolerates [] FLAs in C++ mode but not in C mode, as discovered
when trying to build wpa_supplicant against R1/beta4. A workaround
was added there for now, but this is the more general solution.
This commit is contained in:
Augustin Cavalier
2023-11-24 12:57:07 -05:00
parent 32d1cd8e82
commit ceeea27b72
@@ -785,7 +785,11 @@ struct ieee80211_haiku_join_req {
uint32 i_key_mode;
uint32 i_key_len;
#if __GNUC__ == 2
uint8 i_key[0];
#else
uint8 i_key[];
#endif
};
#endif /* __HAIKU__ */