]> granicus.if.org Git - libvpx/commitdiff
Fix compilation on OS/2
authorKO Myung-Hun <komh@chollian.net>
Fri, 20 Jan 2017 03:58:10 +0000 (12:58 +0900)
committerKO Myung-Hun <komh@chollian.net>
Sun, 14 Oct 2018 13:50:34 +0000 (22:50 +0900)
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

tools_common.h

index 41253729c6c93e03a4b23522a335939b177a5aff..313acd2cfb71073d6f91b75e21a865a16fde9937 100644 (file)
@@ -33,6 +33,7 @@ typedef int64_t FileOffset;
 #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. */