RetroBSD now builds on FreeBSD.

This commit is contained in:
Brian Callahan
2016-06-13 06:47:48 -04:00
parent 148bb1cac6
commit d048ee200e
11 changed files with 42 additions and 6 deletions

View File

@@ -131,10 +131,17 @@ static void add_entry (manifest_t *m, int filetype, char *path, char *link,
/*
* Compare two entries of file traverse scan.
*/
#ifdef __FreeBSD__
static int ftsent_compare (const FTSENT * const *a, const FTSENT *const *b)
{
return strcmp((*a)->fts_name, (*b)->fts_name);
}
#else
static int ftsent_compare (const FTSENT **a, const FTSENT **b)
{
return strcmp((*a)->fts_name, (*b)->fts_name);
}
#endif
/*
* Scan the directory and create a manifest from it's contents.