X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=thirdparty%2Fzlib%2FCMakeLists.txt;fp=thirdparty%2Fzlib%2FCMakeLists.txt;h=b1e953d12bac221e6da86380bc4221c9129dd02a;hb=05fa80124e0546b6d7cc4701ffe37efc3ced5521;hp=55423c8b59b5fe439f3d5e34aacf7fe13fada1d8;hpb=686714aa50236aece6165a342ab7de723a8859af;p=apitrace diff --git a/thirdparty/zlib/CMakeLists.txt b/thirdparty/zlib/CMakeLists.txt index 55423c8..b1e953d 100644 --- a/thirdparty/zlib/CMakeLists.txt +++ b/thirdparty/zlib/CMakeLists.txt @@ -5,6 +5,8 @@ add_definitions (-DNO_VIZ) # adjust warnings if (MSVC) add_definitions (-wd4131) # uses old-style declarator +else () + add_definitions (-DHAVE_UNISTD_H) endif () add_library (z_bundled STATIC