Fix deprecated warning (#16592)

This commit is contained in:
colajam93 2016-09-20 15:48:00 +09:00 committed by minggo
parent 63b3043dc0
commit e7f739897c
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ elseif(UNIX)
# because we have -std=c99
add_definitions(-D_POSIX_C_SOURCE=200809L)
if(LINUX)
add_definitions(-D_BSD_SOURCE)
add_definitions(-D_BSD_SOURCE -D_DEFAULT_SOURCE)
endif()
if(APPLE)
add_definitions(-D_DARWIN_C_SOURCE)