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

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