diff --git a/tools/fsutil/Makefile b/tools/fsutil/Makefile index fa1a27b..8bed77a 100644 --- a/tools/fsutil/Makefile +++ b/tools/fsutil/Makefile @@ -17,7 +17,7 @@ all: $(PROG) install: $(PROG) install -s $(PROG) ${DESTDIR}/bin/$(PROG) clean: - rm -f *~ *.o *.lst *.dis $(PROG) + rm -rf *~ *.o *.lst *.dis $(PROG) $(PROG).dSYM $(PROG): $(OBJS) $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) diff --git a/tools/fsutil/manifest.c b/tools/fsutil/manifest.c index da20ec2..1788aff 100644 --- a/tools/fsutil/manifest.c +++ b/tools/fsutil/manifest.c @@ -131,7 +131,11 @@ static void add_entry (manifest_t *m, int filetype, char *path, char *link, /* * Compare two entries of file traverse scan. */ +#ifdef __APPLE__ +static int ftsent_compare (const FTSENT *const *a, const FTSENT *const *b) +#else static int ftsent_compare (const FTSENT **a, const FTSENT **b) +#endif { return strcmp((*a)->fts_name, (*b)->fts_name); } diff --git a/tools/fsutil/manifest.txt b/tools/fsutil/manifest.txt index c0a8a4c..2da13f1 100644 --- a/tools/fsutil/manifest.txt +++ b/tools/fsutil/manifest.txt @@ -1,5 +1,5 @@ # -# Skeleton of manifest file. +# Example of manifest file. # default owner 0