Include unistd.h when compiling zlib.
This resolves the same issue as
e3d8773545
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
<xml>
|
||||
|
||||
|
||||
<files id="native-toolkit-zlib">
|
||||
|
||||
|
||||
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/zlib/" />
|
||||
|
||||
|
||||
<!-- Use unistd.h anywhere except Win32. -->
|
||||
<compilerflag value="-DZ_HAVE_UNISTD_H" unless="windows" />
|
||||
<compilerflag value="-DZ_HAVE_UNISTD_H" if="windows HXCPP_X86_64" />
|
||||
|
||||
<file name="${NATIVE_TOOLKIT_PATH}/zlib/adler32.c" />
|
||||
<file name="${NATIVE_TOOLKIT_PATH}/zlib/crc32.c" />
|
||||
<file name="${NATIVE_TOOLKIT_PATH}/zlib/infback.c" />
|
||||
@@ -19,7 +23,7 @@
|
||||
<file name="${NATIVE_TOOLKIT_PATH}/zlib/inftrees.c" />
|
||||
<file name="${NATIVE_TOOLKIT_PATH}/zlib/trees.c" />
|
||||
<file name="${NATIVE_TOOLKIT_PATH}/zlib/zutil.c" />
|
||||
|
||||
|
||||
</files>
|
||||
|
||||
|
||||
</xml>
|
||||
Reference in New Issue
Block a user