#include <TargetConditionals.h>
-#if TARGET_OS_EMBEDDED
-#include <dirent.h>
-#include <fts.h>
-#endif /* TARGET_OS_EMBEDDED */
-
/* Sensible wrappers over the byte-swapping routines */
#include "hfs_endian.h"
-#if !TARGET_OS_EMBEDDED
-#include "optical.h"
-#endif
+#if TARGET_OS_OSX
+#include "optical.h" //only include optical headers on Macs
+#endif //osx
#include <mntopts.h>
return (0);
}
-
int
main(argc, argv)
int argc;
int do_rekey = 0;
int tmp_mntflags = 0;
-#if TARGET_OS_EMBEDDED
+
+#if TARGET_OS_IPHONE
mntflags = MNT_NOATIME;
-#else
+#else // !TARGET_OS_IPHONE
mntflags = 0;
-#endif
+#endif // TARGET_OS_IPHONE
+
encp = NULL;
(void)memset(&args, '\0', sizeof(struct hfs_mount_args));
args.hfs_mask = sb.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);
}
-
#if DEBUG
printf("mount_hfs: calling mount: \n" );
printf("\tdevice = %s\n", dev);
#endif
-#if !TARGET_OS_EMBEDDED
+#if TARGET_OS_OSX
/*
* We shouldn't really be calling up to other layers, but
* an exception was made in this case to fix the situation