Ugly hack to fix building on old Darwin

http://hydra.nixos.org/build/12580878
This commit is contained in:
Eelco Dolstra 2014-07-17 23:57:17 +02:00
parent 049c0eb49c
commit 8ddffe7aac

View file

@ -6,7 +6,10 @@
#include <algorithm> #include <algorithm>
#include <vector> #include <vector>
#include <map> #include <map>
#define _DARWIN_C_SOURCE // hack to get strcasecmp on old Darwin versions
#include <cstring> #include <cstring>
#undef _DARWIN_C_SOURCE
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>