libmemcached has a patch to use tr1/cinttypes, as required for base gcc, and as can be optionally used for ports gcc/clang. This breaks things with base clang/libc++. Currently looks like
#ifdef __cplusplus -# include <cinttypes> +# include <tr1/cinttypes> # include <cstddef> # include <cstdlib> #else One way to fix with base clang would be to conditionalize the patch, e.g. #ifdef __cplusplus +# ifdef __clang__ # include <cinttypes> +# else +# include <tr1/cinttypes> +# endif # include <cstddef> # include <cstdlib> #else Another way to fix would be to build everything using it with either base clang or ports clang/gcc and remove the patch completely. Any thoughts on the best way to proceed?
