Fix red introduced in 191ffe2.

Some leftover code from upstream was triggered by the __linux__ macro on
hosted targets.

Change-Id: Ib338e99d3b0d491d983dd92b8d554eed0c547c76
This commit is contained in:
Franklin Wei 2020-04-05 00:43:43 -04:00
parent c0ebbd4ccb
commit 6087c1caa5

View file

@ -8013,12 +8013,7 @@ void findGRPToUse(char * groupfilefullpath){
while ((dirEntry = readdir(dir)) != NULL)
{
#ifdef __linux__
if (dukeGRP_Match(dirEntry->d_name, _D_EXACT_NAMLEN(dirEntry)))
#else
if (dukeGRP_Match(dirEntry->d_name,strlen(dirEntry->d_name)))
#endif
{
sprintf(groupfilefullpath,"%s%s",directoryToScan,dirEntry->d_name);
return;