--- src/libutil/ustring.cpp.orig 2019-11-26 12:56:39 UTC +++ src/libutil/ustring.cpp @@ -308,6 +308,7 @@ namespace { // Definitions to let us access libc++ string internals. // See libc++ file for details. +#ifdef _LIBCPP_VERSION #ifdef _LIBCPP_ALTERNATE_STRING_LAYOUT struct libcpp_string__long { std::string::pointer __data_; @@ -338,6 +339,7 @@ enum { ? (sizeof(libcpp_string__long) - 1) / sizeof(std::string::value_type) : 2 }; +#endif } // namespace