From dbf849dbb97b6dae37b08c99a60e107db7f8d184 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Mon, 15 Aug 2016 22:14:36 -0700 Subject: Fix for C99 and POSIX 2001. #define _DEFAULT_SOURC E seems like a hack... http://stackoverflow.com/questions/10433982/why-does-c99-complain-about-storage-sizes#10435860 --- driver_nmea2000.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'driver_nmea2000.c') diff --git a/driver_nmea2000.c b/driver_nmea2000.c index ab9e87b4..47b051b2 100644 --- a/driver_nmea2000.c +++ b/driver_nmea2000.c @@ -5,8 +5,8 @@ * BSD terms apply: see the file COPYING in the distribution root for details. */ -/* I can not figure out why this file will not compile C99 */ -#undef _ISOC99_SOURCE +/* need this for strnlen() and struct ifreq */ +#define _DEFAULT_SOURCE #include #include -- cgit v1.2.1