diff options
author | Dan Peebles <pumpkin@me.com> | 2017-03-21 22:24:12 -0400 |
---|---|---|
committer | Dan Peebles <pumpkin@me.com> | 2017-03-21 22:24:12 -0400 |
commit | 5561abd5569e67f04479fe767bcea5038b3618ec (patch) | |
tree | 633dca9e3909ad1de6446373316bf2ce9218fba8 | |
parent | 09e814c6810e26901fbb68659d858c9f3ed2de3e (diff) | |
download | nixlib-5561abd5569e67f04479fe767bcea5038b3618ec.tar nixlib-5561abd5569e67f04479fe767bcea5038b3618ec.tar.gz nixlib-5561abd5569e67f04479fe767bcea5038b3618ec.tar.bz2 nixlib-5561abd5569e67f04479fe767bcea5038b3618ec.tar.lz nixlib-5561abd5569e67f04479fe767bcea5038b3618ec.tar.xz nixlib-5561abd5569e67f04479fe767bcea5038b3618ec.tar.zst nixlib-5561abd5569e67f04479fe767bcea5038b3618ec.zip |
libauto: more obscene hackery to make it work on LLVM 4
This sort of thing is going to get revamped to be less hackish soon but for now I want it to work. In this particular case, libc++ 4 (and maybe earlier) gets very upset if we're imprecise about our const markers, and I guess libauto was careless. This fixes it (PtrPtrMap) to be correct.
-rw-r--r-- | pkgs/os-specific/darwin/apple-source-releases/libauto/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/os-specific/darwin/apple-source-releases/libauto/default.nix b/pkgs/os-specific/darwin/apple-source-releases/libauto/default.nix index 2003bb6e55e4..7d6ab403a47a 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/libauto/default.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/libauto/default.nix @@ -13,7 +13,8 @@ appleDerivation { --replace "#include <msgtracer_client.h>" ''$'#include <asl.h>\nstatic void msgtracer_log_with_keys(...) { };' substituteInPlace Definitions.h \ - --replace "#include <System/pthread_machdep.h>" "" + --replace "#include <System/pthread_machdep.h>" "" \ + --replace 'void * const, void * const' 'void * const, void *' # getspecific_direct is more efficient, but this should be equivalent... substituteInPlace Zone.h \ |