diff --git a/test/posix-mock-test.cc b/test/posix-mock-test.cc index c132e1e7..f17d87da 100644 --- a/test/posix-mock-test.cc +++ b/test/posix-mock-test.cc @@ -496,7 +496,7 @@ LocaleType newlocale(int category_mask, const char *locale, LocaleType base) { return LocaleMock::instance->newlocale(category_mask, locale, base); } -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(__FreeBSD__) typedef int FreeLocaleResult; #else typedef void FreeLocaleResult;