blob: 85827122640ae8a38065522e4a548bba237111f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
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;
|