From 72d9fffd78135290310ee74c3a351a1a336804f7 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 21 Jan 2018 18:18:05 -0800 Subject: [PATCH] Fix test compilation for FreeBSD (#433) --- test/posix-mock-test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/posix-mock-test.cc b/test/posix-mock-test.cc index c132e1e7960f..f17d87da4925 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;