Skip to content

Commit

Permalink
Add -D_OPENBSD_SOURCE to netbsd compile flags to handle strtonum.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjeker committed Mar 18, 2024
1 parent 47fb45f commit 89ad86c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sys/param.h>
#if __NetBSD_Version__ < 700000001
Expand Down

0 comments on commit 89ad86c

Please sign in to comment.