[runtests] Fix compilation error on Mac

syncfs is not present in unistd.h on Mac.

Change-Id: I750ff25aa6088d8ad34cb9daa15e200a43aaf5ef
diff --git a/system/ulib/runtests-utils/run-all-tests.cpp b/system/ulib/runtests-utils/run-all-tests.cpp
index 14283fe..c24b7b0 100644
--- a/system/ulib/runtests-utils/run-all-tests.cpp
+++ b/system/ulib/runtests-utils/run-all-tests.cpp
@@ -296,6 +296,8 @@
         }
 
         // Sync output filesystem.
+        // disable on Mac until proper way to sync Mac filesystems is discovered
+#if !defined(__APPLE__)
         int fd = open(output_dir, O_RDONLY);
         if (fd < 0) {
             printf("Warning: Could not open %s for syncing", output_dir);
@@ -304,6 +306,7 @@
         } else {
             close(fd);
         }
+#endif
     }
 
     // Display any failed tests, and free the test results.