Skip to content

Commit da007d5

Browse files
committed
util/types: include missing header for time_t
The musl build fails due to a missing include: In file included from ../unit/test-uint128.c:8: ../unit/../util/types.h:60:16: error: unknown type name ‘time_t’ 60 | int convert_ts(time_t time, char *ts_buf); | ^~~~~~ ../unit/../util/types.h:11:1: note: ‘time_t’ is defined in header ‘<time.h>’; this is probably fixable by adding ‘#include <time.h>’ 10 | #include <libnvme.h> +++ |+#include <time.h> 11 | Signed-off-by: Daniel Wagner <[email protected]>
1 parent c72fb6d commit da007d5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

util/types.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/* type conversion helpers */
66

77
#include <stdint.h>
8+
#include <time.h>
9+
810
#include <linux/types.h>
911

1012
#include <libnvme.h>

0 commit comments

Comments
 (0)