Include time.h for timespec struct definition

Fixes
git/isobusfs/../libj1939.h:33:18: error: field has incomplete type 'struct timespec'
   33 |         struct timespec next_send_time;
      |                         ^
Signed-off-by: Khem Raj <raj.khem@gmail.com>
pull/579/head
Khem Raj 2025-02-13 22:14:47 -08:00
parent 4364d655b8
commit 9d8907aa09
No known key found for this signature in database
GPG Key ID: BB053355919D3314
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@
#include <linux/can/j1939.h> #include <linux/can/j1939.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <time.h>
#include <sys/socket.h> #include <sys/socket.h>
#ifndef J1939_LIB_H #ifndef J1939_LIB_H