1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-23 00:28:11 +00:00

Merge pull request #1114 from neheb/master

Add ADL support to Cygwin
This commit is contained in:
Jens Steube 2017-02-22 10:38:23 +01:00 committed by GitHub
commit 14883bcd53
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