Skip to content

Commit 0da3cb1

Browse files
gordon0001frangarcj
authored andcommitted
Update dirent.c
GCC14 wants dirent.h included for the function "readdir", "opendir", "closedir" otherwise the compiler will give you the following errors:: 1) implicit declaration of function 'opendir' 2) implicit declaration of function 'readdir' 3) implicit declaration of function 'closedir' 4) initialization of 'DIR *' {aka 'struct DIR_ *'} from 'int' makes pointer from integer without a cast 5) assignment to 'struct dirent *' from 'int' makes pointer from integer without a cast
1 parent 4ac9bcd commit 0da3cb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

newlib/libc/sys/vita/dirent.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ DEALINGS IN THE SOFTWARE.
2222
2323
*/
2424

25-
#include <sys/dirent.h>
25+
#include <dirent.h>
2626
#include <errno.h>
2727
#include <fcntl.h>
2828
#include <malloc.h>

0 commit comments

Comments
 (0)