freebsd-ports/devel/cloudabi-libc++/files/patch-include_cstdio
Ed Schouten 17ff9e1d7e Add libc++, libc++abi and libunwind for CloudABI.
In order to get C++ support for CloudABI working, we need to import
three libraries from LLVM, namely libc++, libc++abi and libunwind. Even
though they are installed separately, there seems to be a circular
dependency between them:

- libc++ depends on an internal header from libc++abi.
- libc++abi depends on public headers from libc++, but also an internal
  header from libunwind.
- similarly, libunwind depends on public headers from libc++, but also
  an internal header from libc++abi.

This change adds three new ports for these libraries. As with
compiler-rt, it seems to be almost impossible to use the cmake
infrastructure shipped with these libraries, for the reason that they
depend on a functional C++ compiler being present. This is obviously not
the case, as we're trying to get these installed.

The libc++ port ships with a small number of patches. Almost all of the
patches needed to get libc++ to work on CloudABI have already been
upstreamed. These are the last remaining ones that haven't been
upstreamed yet. Expect the patches to become smaller over time.

Differential Revision:	https://reviews.freebsd.org/D2898
Approved by:	bapt
2015-06-27 20:34:15 +00:00

25 lines
520 B
Text

--- include/cstdio.orig 2015-06-17 04:49:22 UTC
+++ include/cstdio
@@ -151,7 +151,6 @@ using ::setvbuf;
using ::fprintf;
using ::fscanf;
using ::snprintf;
-using ::sprintf;
using ::sscanf;
#ifndef _LIBCPP_MSVCRT
using ::vfprintf;
@@ -159,14 +158,12 @@ using ::vfscanf;
using ::vsscanf;
#endif // _LIBCPP_MSVCRT
using ::vsnprintf;
-using ::vsprintf;
using ::fgetc;
using ::fgets;
using ::fputc;
using ::fputs;
using ::getc;
using ::putc;
-using ::ungetc;
using ::fread;
using ::fwrite;
using ::fgetpos;