ref: c49ca22a88561268db5cd3a401cf6b68576a23fd
parent: b7e9a463f88982505f938557bc9dcea1178b39c2
author: KO Myung-Hun <komh@chollian.net>
date: Fri Jan 20 07:58:10 EST 2017
Fix compilation on OS/2 off_t requires sys/types.h on OS/2 ----- [CC] test/../ivfenc.c.o In file included from test/.././ivfenc.h:13:0, from test/../ivfenc.c:11: test/../././tools_common.h:36:9: error: unknown type name 'off_t' typedef off_t FileOffset; ^~~~~ make.exe[1]: *** [test/../ivfenc.c.o] Error 1 ----- Change-Id: Ia09935e5de8573e63185369fc139e3355664afd1
--- a/tools_common.h
+++ b/tools_common.h
@@ -33,6 +33,7 @@
#define ftello ftello64
typedef off64_t FileOffset;
#elif CONFIG_OS_SUPPORT
+#include <sys/types.h> /* NOLINT */
typedef off_t FileOffset;
/* Use 32-bit file operations in WebM file format when building ARM
* executables (.axf) with RVCT. */
--
⑨