From 1653cc707938d77ce711dd41b297136fd4b16e36 Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Mon, 10 Dec 2018 15:10:58 +0100 Subject: [PATCH] libpayload/sys/types.h: Add definition for off_t `off_t` is supposed to be signed, but has no (minimum) width specified. We'll assume 32-bit minimum, like a `signed long int`. Also include `sys/types.h` in `libpayload.h` so everything is available through the latter. Change-Id: I6c0c1bc1a959db7863cbad2ba29318da162431be Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/c/31346 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner --- payloads/libpayload/include/libpayload.h | 1 + payloads/libpayload/include/sys/types.h | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/payloads/libpayload/include/libpayload.h b/payloads/libpayload/include/libpayload.h index c2510b7373..0b9ab0dcd5 100644 --- a/payloads/libpayload/include/libpayload.h +++ b/payloads/libpayload/include/libpayload.h @@ -58,6 +58,7 @@ #include #include #include +#include #include #include #include diff --git a/payloads/libpayload/include/sys/types.h b/payloads/libpayload/include/sys/types.h index ae143d702c..0ed4975862 100644 --- a/payloads/libpayload/include/sys/types.h +++ b/payloads/libpayload/include/sys/types.h @@ -27,4 +27,11 @@ * SUCH DAMAGE. */ +#ifndef _SYS_TYPES_H +#define _SYS_TYPES_H + #include + +typedef signed long int off_t; + +#endif /* _SYS_TYPES_H */