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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Pawel Worach
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


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev