--- main.m.orig 2019-09-28 16:15:32.000000000 -0700 +++ main.m 2019-09-28 16:16:19.000000000 -0700 @@ -43,7 +43,13 @@ #include #include #include + +#if defined(__has_include) +#if __has_include() #include +#endif +#endif + #include struct packed_name_attr { --- main.m.orig 2019-09-28 16:23:18.000000000 -0700 +++ main.m 2019-09-28 16:26:51.000000000 -0700 @@ -471,6 +471,7 @@ static ssize_t fsgetpath_compat(char *buf, size_t buflen, fsid_t *fsid, uint64_t obj_id) { #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wpartial-availability" +#pragma clang diagnostic ignored "-Wimplicit-function-declaration" if (fsgetpathAvailable) { ssize_t size = fsgetpath(buf, buflen, fsid, obj_id); if (size > -1) {