guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

70/118: Better fix for strcasecmp on Darwin


From: Ludovic Courtès
Subject: 70/118: Better fix for strcasecmp on Darwin
Date: Tue, 19 May 2015 14:45:44 +0000

civodul pushed a commit to branch nix
in repository guix.

commit 2e77bd70faee34cb2518529318a54b39f2d9143e
Author: Eelco Dolstra <address@hidden>
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

[Prev in Thread] Current Thread [Next in Thread]