1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-26 09:58:16 +00:00

Enforce environment variables to be set in cygwin environment

This commit is contained in:
jsteube 2018-01-27 13:26:36 +01:00
parent 01a7476ff8
commit ef3cdddb18

View File

@ -7,6 +7,10 @@
#include "types.h" #include "types.h"
#include "shared.h" #include "shared.h"
#if defined (__CYGWIN__)
#include <sys/cygwin.h>
#endif
static inline int get_msb32 (const u32 v) static inline int get_msb32 (const u32 v)
{ {
int i; int i;
@ -304,6 +308,10 @@ void setup_environment_variables ()
if (getenv ("POCL_KERNEL_CACHE") == NULL) if (getenv ("POCL_KERNEL_CACHE") == NULL)
putenv ((char *) "POCL_KERNEL_CACHE=0"); putenv ((char *) "POCL_KERNEL_CACHE=0");
#if defined (__CYGWIN__)
cygwin_internal (CW_SYNC_WINENV);
#endif
} }
void setup_umask () void setup_umask ()