1
0
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:
Rosen Penev 2017-02-18 12:29:11 -08:00
parent ef004e85f0
commit a1619f640d
No known key found for this signature in database
GPG Key ID: 8B5A63249D3D4CE7
2 changed files with 9 additions and 2 deletions

View File

@ -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;

View File

@ -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