diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-17T21·57+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-07-17T21·57+0200 |
commit | 8ddffe7aac414756809f43732effb8951858243b (patch) | |
tree | b71b01860c59358332ffb640c4b4a51a02b9d8c3 /src | |
parent | 049c0eb49c621ae50f49c8a06dc6c3a9839ef388 (diff) |
Ugly hack to fix building on old Darwin
http://hydra.nixos.org/build/12580878
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/archive.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/archive.cc b/src/libutil/archive.cc index 00c9ae3c7c4c..bef0f4d578b2 100644 --- a/src/libutil/archive.cc +++ b/src/libutil/archive.cc @@ -6,7 +6,10 @@ #include <algorithm> #include <vector> #include <map> + +#define _DARWIN_C_SOURCE // hack to get strcasecmp on old Darwin versions #include <cstring> +#undef _DARWIN_C_SOURCE #include <sys/types.h> #include <sys/stat.h> |