aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/archive.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-17 23:57:17 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-17 23:57:17 +0200
commit8ddffe7aac414756809f43732effb8951858243b (patch)
treeb71b01860c59358332ffb640c4b4a51a02b9d8c3 /src/libutil/archive.cc
parent049c0eb49c621ae50f49c8a06dc6c3a9839ef388 (diff)
Ugly hack to fix building on old Darwin
http://hydra.nixos.org/build/12580878
Diffstat (limited to 'src/libutil/archive.cc')
-rw-r--r--src/libutil/archive.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/archive.cc b/src/libutil/archive.cc
index 00c9ae3c7..bef0f4d57 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>