@elextr The build fails because the source is messed up. What it should be doing is conditionally define the breaking macro here: https://github.com/geany/geany/blob/eb5c3fb35110c21d7e28a88c24a8606013b24d3d/ctags/main/portable-scandir.c#L120
Then make this coherent with the above: https://github.com/geany/geany/blob/eb5c3fb35110c21d7e28a88c24a8606013b24d3d/ctags/main/portable-scandir.c#L234-L239
Assuming USE_SCANDIR_COMPARE_STRUCT_DIRENT
is then not defined for macOS versions where the fallback is to be used, that leaves one error: const struct dirent *
is incorrect for macOS < 10.9 (or close to that), since the OS header uses struct dirent *
. This can be worked around via passing a flag to GCC to convert an error back to warning (pre-gcc14 behavior).
Looks like nobody tested what happens if USE_SCANDIR_COMPARE_STRUCT_DIRENT
is not defined, because it is defined unconditionally.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.