Silence warnings about BSD_SOURCE being deprecated.

This commit is contained in:
Nathan Moinvaziri 2023-10-03 15:41:28 -07:00
parent 2bfdd6e6a7
commit aa4f87309d

View File

@ -461,7 +461,7 @@ if(WIN32)
set(MZ_LIBBSD OFF)
set(MZ_ICONV OFF)
else()
list(APPEND STDLIB_DEF -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE)
list(APPEND STDLIB_DEF -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D_DEFAULT_SOURCE)
list(APPEND MINIZIP_SRC mz_os_posix.c mz_strm_os_posix.c)
if(MZ_PKCRYPT OR MZ_WZAES)