diff --git a/include/ext_ADL.h b/include/ext_ADL.h index 76fe6bcf5..0f3469cd6 100644 --- a/include/ext_ADL.h +++ b/include/ext_ADL.h @@ -45,13 +45,13 @@ typedef struct AdapterInfo char strDisplayName[ADL_MAX_PATH]; int iPresent; - #if defined (_WIN32) || defined (_WIN64) + #if defined (_WIN32) || defined (_WIN64) || defined (__CYGWIN__) int iExist; char strDriverPath[ADL_MAX_PATH]; char strDriverPathExt[ADL_MAX_PATH]; char strPNPString[ADL_MAX_PATH]; int iOSDisplayIndex; - #endif /* (_WIN32) || (_WIN64) */ + #endif /* (_WIN32) || (_WIN64) || (__CYGWIN__) */ #if defined (__linux__) int iXScreenNum; diff --git a/src/hwmon.c b/src/hwmon.c index 8938304a1..ccfe3d138 100644 --- a/src/hwmon.c +++ b/src/hwmon.c @@ -1773,6 +1773,13 @@ static int adl_init (hashcat_ctx_t *hashcat_ctx) { adl->lib = hc_dlopen ("atiadlxy.dll"); } + #elif defined (__CYGWIN__) + adl->lib = hc_dlopen ("atiadlxx.dll", RTLD_NOW); + + if (!adl->lib) + { + adl->lib = hc_dlopen ("atiadlxy.dll", RTLD_NOW); + } #elif defined (_POSIX) adl->lib = hc_dlopen ("libatiadlxx.so", RTLD_NOW); #endif