From 89ad86cc3b3ff6dd1261e8b0fd54a997e02680c7 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Mon, 18 Mar 2024 14:12:19 +0100 Subject: [PATCH] Add -D_OPENBSD_SOURCE to netbsd compile flags to handle strtonum. --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 80368d7..a5f96cd 100644 --- a/configure.ac +++ b/configure.ac @@ -82,6 +82,7 @@ char buf[1]; getentropy(buf, 1); ;; *netbsd*) HOST_OS=netbsd + CFLAGS="$CFLAGS -D_OPENBSD_SOURCE" AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #include #if __NetBSD_Version__ < 700000001