From f6738b78e90e79731a9e69cda7e571b80bd6db01 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Fri, 17 Jan 2020 12:13:14 -0800 Subject: [PATCH] [configure] remove _BSD_SOURCE _DEFAULT_SOURCE (#4483) --- configure.ac | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/configure.ac b/configure.ac index 2a98a4129..f57039fa6 100644 --- a/configure.ac +++ b/configure.ac @@ -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