summary refs log tree commit diff
path: root/pkgs/os-specific/darwin/apple-source-releases/libauto/default.nix
diff options
context:
space:
mode:
authorDan Peebles <pumpkin@me.com>2017-03-21 22:24:12 -0400
committerDan Peebles <pumpkin@me.com>2017-03-21 22:24:12 -0400
commit5561abd5569e67f04479fe767bcea5038b3618ec (patch)
tree633dca9e3909ad1de6446373316bf2ce9218fba8 /pkgs/os-specific/darwin/apple-source-releases/libauto/default.nix
parent09e814c6810e26901fbb68659d858c9f3ed2de3e (diff)
downloadnixpkgs-5561abd5569e67f04479fe767bcea5038b3618ec.tar
nixpkgs-5561abd5569e67f04479fe767bcea5038b3618ec.tar.gz
nixpkgs-5561abd5569e67f04479fe767bcea5038b3618ec.tar.bz2
nixpkgs-5561abd5569e67f04479fe767bcea5038b3618ec.tar.lz
nixpkgs-5561abd5569e67f04479fe767bcea5038b3618ec.tar.xz
nixpkgs-5561abd5569e67f04479fe767bcea5038b3618ec.tar.zst
nixpkgs-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.
Diffstat (limited to 'pkgs/os-specific/darwin/apple-source-releases/libauto/default.nix')
-rw-r--r--pkgs/os-specific/darwin/apple-source-releases/libauto/default.nix3
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 2003bb6e55e..7d6ab403a47 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 \