diff --git a/test/_test_main.cpp b/test/_test_main.cpp index 68211e0..bf2dce4 100644 --- a/test/_test_main.cpp +++ b/test/_test_main.cpp @@ -31,6 +31,7 @@ #else #include #include +#include #endif #if defined(__has_include) && __has_include() @@ -43,7 +44,7 @@ char argv0[MAX_PATH]; inline const char *getprogname() { return GetModuleFileName(NULL, argv0, sizeof(argv0)) ? argv0 : NULL; } -#elif !defined(__APPLE__) +#elif !defined(__APPLE__) && !defined(__FreeBSD__) // N.B. getprogname() is an Apple/BSD-ism. // program_invocation_name is a GLIBC-ism, but it's also // supported by libmusl.