From 5a0fc418e0617126bcb212213e30954c8b1dc02d Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 26 Jul 2019 18:15:12 -0500 Subject: Fix gpsd major number function for GNU Linux --- recipes-navigation/gpsd/gpsd-3.16/0008-major_gnu.patch | 12 ++++++++++++ recipes-navigation/gpsd/gpsd_3.16.bb | 1 + 2 files changed, 13 insertions(+) create mode 100644 recipes-navigation/gpsd/gpsd-3.16/0008-major_gnu.patch (limited to 'recipes-navigation/gpsd') 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 \ -- cgit v1.2.3