summaryrefslogtreecommitdiff
path: root/driver_nmea2000.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-08-15 21:47:12 -0700
committerGary E. Miller <gem@rellim.com>2016-08-15 21:47:12 -0700
commit40cf257dba8bc3a7e7c688b72c6586b49f8344d0 (patch)
treebe04c35859e9f6488dd87a8ca10f7843a8b7aadf /driver_nmea2000.c
parent558586bc99a8f57ee42f0597f52232cd1ee8900b (diff)
downloadgpsd-40cf257dba8bc3a7e7c688b72c6586b49f8344d0.tar.gz
I can not figure out why this file will not C99. Punt.
Diffstat (limited to 'driver_nmea2000.c')
-rw-r--r--driver_nmea2000.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/driver_nmea2000.c b/driver_nmea2000.c
index c5c6a8b1..ab9e87b4 100644
--- a/driver_nmea2000.c
+++ b/driver_nmea2000.c
@@ -4,6 +4,10 @@
* This file is Copyright (c) 2012 by the GPSD project
* 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
+
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
@@ -15,8 +19,8 @@
#include <fcntl.h>
#include <unistd.h>
#include <sys/socket.h>
-#include <net/if.h>
#include <sys/ioctl.h>
+#include <net/if.h>
#include "gpsd.h"
#include "libgps.h"