1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Make it compile and work in GCC / Linux

This commit is contained in:
2014-04-12 20:40:43 -07:00
parent f0ed701d8f
commit b48963b904
4 changed files with 6 additions and 7 deletions

View File

@ -307,8 +307,8 @@ hsSemaphore::~hsSemaphore()
status = sem_close(fPSema);
} else {
status = sem_destroy(fPSema);
delete fPSema;
}
delete fPSema;
hsThrowIfOSErr(status);
#else
int status = ::pthread_cond_destroy(&fPCond);

View File

@ -394,7 +394,7 @@ std::vector<plFileName> plFileSystem::ListDir(const plFileName &path, const char
continue;
}
if (pattern && pattern[0] && fnmatch(pattern, de->d_name, 0))
if (pattern && pattern[0] && fnmatch(pattern, de->d_name, 0) == 0)
contents.push_back(dir_name);
else if (!pattern || !pattern[0])
contents.push_back(dir_name);