summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/socketcan/can-utils/0001-Include-time.h-for-timespec-struct-definition.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/socketcan/can-utils/0001-Include-time.h-for-timespec-struct-definition.patch')
-rw-r--r--meta-oe/recipes-extended/socketcan/can-utils/0001-Include-time.h-for-timespec-struct-definition.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/socketcan/can-utils/0001-Include-time.h-for-timespec-struct-definition.patch b/meta-oe/recipes-extended/socketcan/can-utils/0001-Include-time.h-for-timespec-struct-definition.patch
new file mode 100644
index 0000000000..91b9dd3c4e
--- /dev/null
+++ b/meta-oe/recipes-extended/socketcan/can-utils/0001-Include-time.h-for-timespec-struct-definition.patch
@@ -0,0 +1,28 @@
1From 4363ef59cc9f2169455f56453759d4a4d9b89a5f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 13 Feb 2025 22:14:47 -0800
4Subject: [PATCH] Include time.h for timespec struct definition
5
6Fixes
7git/isobusfs/../libj1939.h:33:18: error: field has incomplete type 'struct timespec'
8 33 | struct timespec next_send_time;
9 | ^
10
11Upstream-Status: Submitted [https://github.com/linux-can/can-utils/pull/579]
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 libj1939.h | 1 +
15 1 file changed, 1 insertion(+)
16
17diff --git a/libj1939.h b/libj1939.h
18index 44393a2..7c19f43 100644
19--- a/libj1939.h
20+++ b/libj1939.h
21@@ -17,6 +17,7 @@
22 #include <linux/can/j1939.h>
23 #include <stdbool.h>
24 #include <stdint.h>
25+#include <time.h>
26 #include <sys/socket.h>
27
28 #ifndef J1939_LIB_H