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
1 changed files with 3 additions and 0 deletions

View File

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