commit 16c7aa4bd99efc75751c396d3c11acaf023df301 from: Thomas Adam date: Fri Jun 14 12:41:22 2024 UTC CI: Macos: fix fparseln() compilation Ensure is included so that its implementation of fparseln() can compile. commit - a1246bc46f0247ae1f12c449dfe00008e843047f commit + 16c7aa4bd99efc75751c396d3c11acaf023df301 blob - d155db61f9484a54de26290a74f2fdc0abf743d1 blob + 5d43727d9c177db6b1ddb0ce5a02e01837b0f7ff --- compat.h +++ compat.h @@ -157,6 +157,13 @@ long long strtonum(const char*, long long, long long, void setproctitle(const char*, ...); #endif +/* Needed for Darwin (MacOS) to keep fparseln() happy -- but could also be + * used elsewhere in the future. + */ +#ifdef HAVE_UTIL_H +#include +#endif + #ifndef __dead #define __dead __attribute__((__noreturn__)) #endif blob - 645dc65abb32ba0a404b096a834d173cc88f35fa blob + 9379cafdee82bf355e139c63fc751fc042b1c58e --- configure.ac +++ configure.ac @@ -44,6 +44,7 @@ AC_DEFINE_UNQUOTED([DEFAULT_EDITOR], ["$DEFAULT_EDITOR AC_CHECK_HEADERS([ \ libutil.h \ + util.h \ ]) AS_IF([test "x$with_libbsd" = "xyes"], [