fix errno handling in scandir:
[musl] / src / signal / restore.c