Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test compilation for FreeBSD #433

Closed
WscriChy opened this issue Dec 12, 2016 · 1 comment
Closed

Fix test compilation for FreeBSD #433

WscriChy opened this issue Dec 12, 2016 · 1 comment

Comments

@WscriChy
Copy link

WscriChy commented Dec 12, 2016

A small patch (made against 3.0.1 tag) that fixes test for FreeBSD.

--- test/posix-mock-test.cc.orig        2016-12-01 18:09:30 UTC
+++ test/posix-mock-test.cc
@@ -502,7 +502,7 @@ LocaleType newlocale(int category_mask,
   return LocaleMock::instance->newlocale(category_mask, locale, base);
 }

-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__FreeBSD__)
 typedef int FreeLocaleResult;
 #else
 typedef void FreeLocaleResult;
@vitaut
Copy link
Contributor

vitaut commented Dec 14, 2016

Fixed in fac5546. Thanks!

@vitaut vitaut closed this as completed Dec 14, 2016
foonathan pushed a commit that referenced this issue Jun 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants