]> git.cameronkatri.com Git - apple_cmds.git/commitdiff
diskdev_cmds: Fix compilation for lower targets
authorCameron Katri <me@cameronkatri.com>
Sun, 23 May 2021 13:47:27 +0000 (09:47 -0400)
committerCameron Katri <me@cameronkatri.com>
Sun, 23 May 2021 13:47:27 +0000 (09:47 -0400)
diskdev_cmds/mount_flags_dir/mount_flags.c
diskdev_cmds/vsdbutil.tproj/vsdbutil_main.c

index 370729053efcd9d3e0f628c680d4ee246920c889..911095eef3394c9ded240d37e4a0d2a6f01d1788 100644 (file)
@@ -79,7 +79,9 @@ const mountopt_t optnames[] = {
     { MNT_DEFWRITE,     "defwrite",     NULL,           },
     { MNT_IGNORE_OWNERSHIP, "noowners", "noowners",     },
     { MNT_NOATIME,      "noatime",      "noatime",      },
+#if defined(MNT_STRICTATIME)
     { MNT_STRICTATIME,  "strictatime",  "strictatime",  },
+#endif
     { MNT_QUARANTINE,   "quarantine",   "quarantine",   },
     { MNT_DONTBROWSE,   "nobrowse",     "nobrowse",     },
     { MNT_CPROTECT,     "protect",      "protect",      },
index efaf032324797a24091eb1c7170690d0fd145472..6dc2450daf046648ddf7709429214bd2661b05c7 100644 (file)
@@ -41,7 +41,7 @@
 #include <sys/time.h>
 #include <sys/ucred.h>
 #include <sys/resource.h>
-#include <sys/vmmeter.h>
+// #include <sys/vmmeter.h>
 #include <sys/wait.h>
 #include <stdio.h>
 #include <unistd.h>