Fix libretro OSX build

Fixes these errors:

```
../ext/zlib/gzlib.c:492:14: error: implicit declaration of function 'lseek' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
../ext/zlib/gzwrite.c:84:15: error: implicit declaration of function 'write' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
  1 /* gzguts.h -- zlib internal header definitions for gz* operations
        got = write(state->fd, strm->next_in, strm->avail_in);
```
This commit is contained in:
Jean-André Santoni 2020-09-13 15:07:08 +07:00 committed by GitHub
parent 2b49c3e464
commit 6f2310b8ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,6 +27,10 @@
#endif
#include <fcntl.h>
#ifdef __APPLE__
#include <unistd.h>
#endif
#ifdef _WIN32
# include <stddef.h>
#endif