summaryrefslogtreecommitdiff
path: root/driver_nmea2000.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver_nmea2000.c')
-rw-r--r--driver_nmea2000.c4
1 files changed, 2 insertions, 2 deletions
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 <stdio.h>
#include <stdlib.h>