Fix compilation for native Cygwin

This commit is contained in:
Rosen Penev
2016-11-29 14:10:39 -08:00
parent 72d0b272c2
commit 96783ed7a3
13 changed files with 24 additions and 12 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ int sort_by_stringptr (const void *p1, const void *p2)
static int get_exec_path (char *exec_path, const size_t exec_path_sz)
{
#if defined (__linux__)
#if defined (__linux__) || defined (__CYGWIN__)
char tmp[32] = { 0 };
@@ -302,7 +302,7 @@ int folder_config_init (hashcat_ctx_t *hashcat_ctx, MAYBE_UNUSED const char *ins
return -1;
}
#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__)
#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined (__CYGWIN__)
static const char SLASH[] = "/";