summaryrefslogtreecommitdiff
path: root/recipes-navigation
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-navigation')
-rw-r--r--recipes-navigation/gpsd/gpsd-3.16/0008-major_gnu.patch12
-rw-r--r--recipes-navigation/gpsd/gpsd_3.16.bb1
2 files changed, 13 insertions, 0 deletions
diff --git a/recipes-navigation/gpsd/gpsd-3.16/0008-major_gnu.patch b/recipes-navigation/gpsd/gpsd-3.16/0008-major_gnu.patch
new file mode 100644
index 0000000..8582712
--- /dev/null
+++ b/recipes-navigation/gpsd/gpsd-3.16/0008-major_gnu.patch
@@ -0,0 +1,12 @@
+diff -Naru orig/serial.c new/serial.c
+--- orig/serial.c 2019-07-26 18:01:44.178086824 -0500
++++ new/serial.c 2019-07-26 18:02:49.742084883 -0500
+@@ -64,7 +64,7 @@
+ * stable and architecture-independent. It is *not* a good model
+ * for other Unixes where either or both assumptions may break.
+ */
+- int devmajor = major(sb.st_rdev);
++ int devmajor = gnu_dev_major(sb.st_rdev);
+ /* 207 are Freescale i.MX UARTs (ttymxc*) */
+ if (devmajor == 4 || devmajor == 204 || devmajor == 207)
+ devtype = source_rs232;
diff --git a/recipes-navigation/gpsd/gpsd_3.16.bb b/recipes-navigation/gpsd/gpsd_3.16.bb
index 35719aa..1464981 100644
--- a/recipes-navigation/gpsd/gpsd_3.16.bb
+++ b/recipes-navigation/gpsd/gpsd_3.16.bb
@@ -17,6 +17,7 @@ SRC_URI = "${SAVANNAH_GNU_MIRROR}/${BPN}/${BP}.tar.gz \
file://0006-ubxtimelps.patch \
file://0006-itu_r_tf_460_6.patch \
file://0006-sysclockcrash.patch \
+ file://0008-major_gnu.patch \
file://gpsd-default \
file://gpsd \
file://gpsd_ubx_fixed.sh \