Only check Darwin's volume attributes if defined as existing.

This commit is contained in:
2021-05-24 14:21:49 +01:00
parent 0c501a6e21
commit 4356cd5886

View File

@@ -191,6 +191,7 @@ typedef struct attrlist attrlist_t;
void DarwinVolumeAttributes(const char* path)
{
#ifdef ATTR_VOL_CAPABILITIES
int ret;
attrlist_t attrList;
vol_capabilities_attr_t attrBuf;
@@ -368,4 +369,5 @@ void DarwinVolumeAttributes(const char* path)
log_write("\tVolume is cryptographically sealed\n");
capabilities_valid -= VOL_CAP_FMT_SEALED;
}
}
#endif // ATTR_VOL_CAPABILITIES
}