civodul pushed a commit to branch nix
in repository guix.
commit 8ddffe7aac414756809f43732effb8951858243b
Author: Eelco Dolstra <[email protected]>
Date: Thu Jul 17 23:57:17 2014 +0200
Ugly hack to fix building on old Darwin
http://hydra.nixos.org/build/12580878
---
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 00c9ae3..bef0f4d 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>