Only try path access to resource fork in Darwin if it is defined as existing.

This commit is contained in:
2021-05-24 14:21:17 +01:00
parent 80a7329cb7
commit 0c501a6e21

View File

@@ -48,6 +48,7 @@ void DarwinResourceFork(const char* path)
#ifdef HAVE_CARBON
ret = CarbonResourceFork(path);
#endif
#ifdef _PATH_RSRCFORKSPEC
// Correctly done by Carbon, if not fallback to _PATH_RSRCFORKSPEC
if(ret > 0) return;
@@ -322,4 +323,5 @@ void DarwinResourceFork(const char* path)
wRc,
cRc,
rRc);
}
#endif // _PATH_RSRCFORKSPEC
}