mirror of
https://github.com/aaru-dps/fstester.git
synced 2025-12-16 19:24:39 +00:00
Only use punchchole in Darwin/Mac OS X if present when compiled.
This commit is contained in:
@@ -34,6 +34,7 @@ Copyright (C) 2011-2021 Natalia Portillo
|
||||
|
||||
int DarwinSparse(const char* path)
|
||||
{
|
||||
#ifdef F_PUNCHHOLE
|
||||
int ret;
|
||||
int rc, wRc, cRc, sRc;
|
||||
FILE* h;
|
||||
@@ -148,4 +149,7 @@ int DarwinSparse(const char* path)
|
||||
sRc);
|
||||
|
||||
return done;
|
||||
#else
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user