From ad3d9102dbec58bdd72fffe933081e8d258e962d Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Mon, 10 May 2021 09:13:28 -0400 Subject: file_cmds: mtree probably won't work, but it does compile --- file_cmds/mtree/commoncrypto.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'file_cmds/mtree/commoncrypto.c') diff --git a/file_cmds/mtree/commoncrypto.c b/file_cmds/mtree/commoncrypto.c index 11e97ce..36cfcb8 100644 --- a/file_cmds/mtree/commoncrypto.c +++ b/file_cmds/mtree/commoncrypto.c @@ -12,7 +12,7 @@ #include #include #include -#include +//#include #include "commoncrypto.h" #include "extern.h" @@ -255,6 +255,7 @@ get_xdstream_privateid(char *path, char *buf) { nextName += strlen(name) + 1; } +#ifdef APFSIOC_XDSTREAM_OBJ_ID for (int i = 0; i < xattrIndex; i++) { char *name = xattrs[i]; // System volume has stream based xattrs only in form of resource forks @@ -276,6 +277,7 @@ get_xdstream_privateid(char *path, char *buf) { } } } +#endif ai->xdstream_priv_id = xd_obj_id; // insert a dummy value as digest is not used in presence of mflag -- cgit v1.2.3