mirror of
https://github.com/espressif/openthread.git
synced 2026-08-26 20:19:53 +00:00
[configure] remove _BSD_SOURCE _DEFAULT_SOURCE (#4483)
This commit is contained in:
@@ -918,21 +918,6 @@ AC_MSG_NOTICE([checking required package dependencies])
|
||||
# Check for headers
|
||||
#
|
||||
|
||||
#---------------------------------------------------
|
||||
# Enable BSD Security Features
|
||||
# This enables strlcpy() and other friends in GNU land.
|
||||
# While the references below generally speak of: "glibc"
|
||||
# The ARM Embedded platform uses the nano instance of NEWLIB
|
||||
# Which greatly follows and mirrors glibc.
|
||||
# --------------------------------------------------
|
||||
#
|
||||
# References:
|
||||
# 1) http://stackoverflow.com/questions/29201515/what-does-d-default-source-do
|
||||
# 2) http://man7.org/linux/man-pages/man7/feature_test_macros.7.html
|
||||
#
|
||||
CFLAGS="${CFLAGS} -D_BSD_SOURCE=1 -D_DEFAULT_SOURCE=1"
|
||||
CXXFLAGS="${CXXFLAGS} -D_BSD_SOURCE=1 -D_DEFAULT_SOURCE=1"
|
||||
|
||||
OLD_CFLAGS="${CFLAGS}"
|
||||
CFLAGS="${CFLAGS} -Wno-error=address"
|
||||
AC_HEADER_STDBOOL
|
||||
|
||||
Reference in New Issue
Block a user