[cfe-dev] [PATCH] Make libc++ compile on linux (issue1164043)

Pawel Worach pawel.worach at gmail.com
Mon May 24 13:40:03 PDT 2010


Hi,

A tiny diff below to make src/thread.cpp compile on FreeBSD.

Other issues on FreeBSD are:

1) no xlocale stuff, causes include/__locale to explode with
missing missing declarations for LC_*_MASK and _IS* functions.
unknown type locale_t

2) The following math functions are not implemented on FreeBSD, causing include/cmath breakage
coshl expl logl log10l powl sinhl tanhl acoshl asinhl atanhl cbrtl erfl erfcl expm1l lgammal log1pl log2f

3) The following errno's are not defined in FreeBSD's errno.h causing include/system:_error breakage
ENODATA ENOSR ENOSTR ETIME

Index: src/thread.cpp
===================================================================
--- src/thread.cpp	(revision 104543)
+++ src/thread.cpp	(working copy)
@@ -9,6 +9,7 @@
 
 #include "thread"
 #include "exception"
+#include <sys/types.h>
 #include <sys/sysctl.h>
 
 _LIBCPP_BEGIN_NAMESPACE_STD

-- 
Pawel





More information about the cfe-dev mailing list