From: KO Myung-Hun Date: Fri, 20 Jan 2017 03:58:10 +0000 (+0900) Subject: Fix compilation on OS/2 X-Git-Tag: v1.8.0~179^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c49ca22a88561268db5cd3a401cf6b68576a23fd;p=libvpx 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 --- diff --git a/tools_common.h b/tools_common.h index 41253729c..313acd2cf 100644 --- a/tools_common.h +++ b/tools_common.h @@ -33,6 +33,7 @@ typedef int64_t FileOffset; #define ftello ftello64 typedef off64_t FileOffset; #elif CONFIG_OS_SUPPORT +#include /* NOLINT */ typedef off_t FileOffset; /* Use 32-bit file operations in WebM file format when building ARM * executables (.axf) with RVCT. */