summaryrefslogtreecommitdiff
path: root/driver_nmea2000.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-08-15 22:14:36 -0700
committerGary E. Miller <gem@rellim.com>2016-08-15 22:14:36 -0700
commitdbf849dbb97b6dae37b08c99a60e107db7f8d184 (patch)
tree20ed4249aadfb57c70da8d4a4407cccda4fc23d3 /driver_nmea2000.c
parentff398eb82a620eed391e73bb9b60be096aeac5ad (diff)
downloadgpsd-dbf849dbb97b6dae37b08c99a60e107db7f8d184.tar.gz
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
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>