Blob Blame History Raw
diff --git a/src/plugins/canbus/socketcan/socketcanbackend.cpp b/src/plugins/canbus/socketcan/socketcanbackend.cpp
index 74b0d1d..03a3d14 100644
--- a/src/plugins/canbus/socketcan/socketcanbackend.cpp
+++ b/src/plugins/canbus/socketcan/socketcanbackend.cpp
@@ -51,6 +51,11 @@
 #include <sys/ioctl.h>
 #include <sys/time.h>
 
+// Seems that kernel 5.2.0 renames this define to SIOCGSTAMP_OLD
+#ifndef SIOCGSTAMP
+#define SIOCGSTAMP        0x8906          /* Get stamp (timeval) */
+#endif
+
 #ifndef CANFD_MTU
 // CAN FD support was added by Linux kernel 3.6
 // For prior kernels we redefine the missing defines here