summaryrefslogtreecommitdiff
path: root/recipes-navigation/gpsd/gpsd-3.16
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-07-26 18:15:12 -0500
committerSerhii Kostiuk <serhii.o.kostiuk@globallogic.com>2020-05-20 19:50:20 +0300
commit5a0fc418e0617126bcb212213e30954c8b1dc02d (patch)
treef6954c5559ae129a3a1083ba787489c887e7a70a /recipes-navigation/gpsd/gpsd-3.16
parent999abcdce63816b80d5de39f3d24d4cac19321d2 (diff)
downloadmeta-mlinux-5a0fc418e0617126bcb212213e30954c8b1dc02d.tar.gz
meta-mlinux-5a0fc418e0617126bcb212213e30954c8b1dc02d.tar.bz2
meta-mlinux-5a0fc418e0617126bcb212213e30954c8b1dc02d.zip
Fix gpsd major number function for GNU Linux
Diffstat (limited to 'recipes-navigation/gpsd/gpsd-3.16')
-rw-r--r--recipes-navigation/gpsd/gpsd-3.16/0008-major_gnu.patch12
1 files changed, 12 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;