Blame SOURCES/qtserialbus-everywhere-src-5.12.3-SIOCGSTAMP.patch

b3317d
diff --git a/src/plugins/canbus/socketcan/socketcanbackend.cpp b/src/plugins/canbus/socketcan/socketcanbackend.cpp
b3317d
index 572fef8..68e8b3f 100644
b3317d
--- a/src/plugins/canbus/socketcan/socketcanbackend.cpp
b3317d
+++ b/src/plugins/canbus/socketcan/socketcanbackend.cpp
b3317d
@@ -56,6 +56,11 @@
b3317d
 #include <sys/ioctl.h>
b3317d
 #include <sys/time.h>
b3317d
 
b3317d
+// Seems that kernel 5.2.0 renames this define to SIOCGSTAMP_OLD
b3317d
+#ifndef SIOCGSTAMP
b3317d
+#define SIOCGSTAMP        0x8906          /* Get stamp (timeval) */
b3317d
+#endif
b3317d
+
b3317d
 #ifndef CANFD_BRS
b3317d
 #   define CANFD_BRS 0x01 /* bit rate switch (second bitrate for payload data) */
b3317d
 #endif