Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaks on FreeBSD: no matching function for call to 'fts_open' #61

Closed
yurivict opened this issue Jul 17, 2022 · 1 comment
Closed

Breaks on FreeBSD: no matching function for call to 'fts_open' #61

yurivict opened this issue Jul 17, 2022 · 1 comment

Comments

@yurivict
Copy link
Contributor

sources/ysfx_utils_fts.cpp:43:16: error: no matching function for call to 'fts_open'
    FTS *fts = fts_open(argv, FTS_NOCHDIR|FTS_PHYSICAL, +compar);
               ^~~~~~~~
/usr/include/fts.h:131:6: note: candidate function not viable: no known conversion from 'auto (*)(const FTSENT **, const FTSENT **) -> int' (aka 'auto (*)(const _ftsent **, const _ftsent **) -> int') to 'int (*)(const FTSENT *const *, const FTSENT *const *)' (aka 'int (*)(const _ftsent *const *, const _ftsent *const *)') for 3rd argument
FTS     *fts_open(char * const *, int,
         ^
1 error generated.

From the fts_open manpage:

FTS(3)                 FreeBSD Library Functions Manual                 FTS(3)

NAME
     fts – traverse a file hierarchy

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <fts.h>

     FTS *
     fts_open(char * const *path_argv, int options,
         int (*compar)(const FTSENT * const *, const FTSENT * const *));

...
@jpcima
Copy link
Owner

jpcima commented Jul 17, 2022

It's fixed in f1c02a9, probably.

@jpcima jpcima closed this as completed Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants