summaryrefslogtreecommitdiff
path: root/recipes-navigation/gpsd/gpsd-3.16/0008-major_gnu.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-navigation/gpsd/gpsd-3.16/0008-major_gnu.patch')
-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;