civodul pushed a commit to branch nix
in repository guix.

commit 2e77bd70faee34cb2518529318a54b39f2d9143e
Author: Eelco Dolstra <[email protected]>
Date:   Fri Jul 18 12:54:30 2014 +0200

    Better fix for strcasecmp on Darwin
---
 src/libutil/archive.cc |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/libutil/archive.cc b/src/libutil/archive.cc
index bef0f4d..5450fd2 100644
--- a/src/libutil/archive.cc
+++ b/src/libutil/archive.cc
@@ -7,9 +7,7 @@
 #include <vector>
 #include <map>
 
-#define _DARWIN_C_SOURCE // hack to get strcasecmp on old Darwin versions
-#include <cstring>
-#undef _DARWIN_C_SOURCE
+#include <strings.h> // for strcasecmp
 
 #include <sys/types.h>
 #include <sys/stat.h>

Reply via email to