diff --git a/test/posix-mock-test.cc b/test/posix-mock-test.cc index 3eaca21c..7a78327e 100644 --- a/test/posix-mock-test.cc +++ b/test/posix-mock-test.cc @@ -502,7 +502,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;