From fac5546321031b9a32e9ea90c001bc4cef174589 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 14 Dec 2016 06:28:41 -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 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;