From patchwork Sat Dec 2 02:47:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam James X-Patchwork-Id: 13476763 X-Patchwork-Delegate: dsahern@gmail.com Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20566E6 for ; Fri, 1 Dec 2023 18:47:16 -0800 (PST) From: Sam James To: netdev@vger.kernel.org Cc: Sam James Subject: [iproute2 PATCH] configure: Add _GNU_SOURCE to strlcpy configure test Date: Sat, 2 Dec 2023 02:47:04 +0000 Message-ID: <20231202024705.1375296-1-sam@gentoo.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: dsahern@gmail.com >=glibc-2.38 adds strlcpy but it's guarded under a feature-test macro. Just add _GNU_SOURCE to the configure test because we already pass _GNU_SOURCE unconditionally in the Makefiles when building iproute2. Signed-off-by: Sam James --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index eb689341..78bc52c0 100755 --- a/configure +++ b/configure @@ -445,6 +445,7 @@ EOF check_strlcpy() { cat >$TMPDIR/strtest.c < int main(int argc, char **argv) { char dst[10];