HomeFreeBSD

zlib: Fix bootstrap build on macOS

Description

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

Details

Provenance
jrtc27Authored on Dec 6 2021, 10:24 PM
Parents
rG022ce9617fe6: libc: get rid of NO_P1003_1B make variable
Branches
Unknown
Tags
Unknown