mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-22 22:58:30 +00:00
Add ADL support to Cygwin
This commit is contained in:
parent
ef004e85f0
commit
a1619f640d
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user