about summary refs log tree commit diff
path: root/src/libutil
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/archive.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libutil/archive.cc b/src/libutil/archive.cc
index bef0f4d578b2..5450fd2f7182 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>