mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
zlib: Fix bootstrap build on macOS
gzlib.c uses lseek but does not include unistd.h, where it is defined to live. On FreeBSD this happens to work due to sys/types.h declaring it, but on macOS it fails due to being only implicitly declared, which is treated as an error by default by the system Clang. MFC after: 1 week
This commit is contained in:
parent
022ce9617f
commit
6010a892b4
1 changed files with 1 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include "gzguts.h"
|
||||
#include "zutil.h"
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(_WIN32) && !defined(__BORLANDC__) && !defined(__MINGW32__)
|
||||
# define LSEEK _lseeki64
|
||||
|
|
|
|||
Loading…
Reference in a new issue