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:
@ -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);
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user