From 8ddffe7aac414756809f43732effb8951858243b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 17 Jul 2014 23:57:17 +0200 Subject: [PATCH] Ugly hack to fix building on old Darwin http://hydra.nixos.org/build/12580878 --- src/libutil/archive.cc | 3 +++ 1 file changed, 3 insertions(+) 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 #include #include + +#define _DARWIN_C_SOURCE // hack to get strcasecmp on old Darwin versions #include +#undef _DARWIN_C_SOURCE #include #include