jehanne: protect sys/dirent.h functions

This commit is contained in:
Giacomo Tesio 2019-12-27 16:03:04 +01:00
parent 1642ff8510
commit 808d02b453
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,9 @@ typedef struct {
#define dirent64 dirent
#endif
#ifndef _DIRENT_H_
/* Newlib's dirent.h already defines these */
DIR *opendir(const char *);
struct dirent *readdir(DIR *);
int readdir_r(DIR *__restrict, struct dirent *__restrict,
@ -50,6 +53,8 @@ int dirfd(DIR *);
DIR *fdopendir(int);
int closedir(DIR *);
#endif
#ifndef _POSIX_SOURCE
long telldir (DIR *);
void seekdir (DIR *, off_t loc);