jehanne: protect sys/dirent.h functions
This commit is contained in:
@ -41,6 +41,9 @@ typedef struct {
|
|||||||
#define dirent64 dirent
|
#define dirent64 dirent
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef _DIRENT_H_
|
||||||
|
/* Newlib's dirent.h already defines these */
|
||||||
|
|
||||||
DIR *opendir(const char *);
|
DIR *opendir(const char *);
|
||||||
struct dirent *readdir(DIR *);
|
struct dirent *readdir(DIR *);
|
||||||
int readdir_r(DIR *__restrict, struct dirent *__restrict,
|
int readdir_r(DIR *__restrict, struct dirent *__restrict,
|
||||||
@ -50,6 +53,8 @@ int dirfd(DIR *);
|
|||||||
DIR *fdopendir(int);
|
DIR *fdopendir(int);
|
||||||
int closedir(DIR *);
|
int closedir(DIR *);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _POSIX_SOURCE
|
#ifndef _POSIX_SOURCE
|
||||||
long telldir (DIR *);
|
long telldir (DIR *);
|
||||||
void seekdir (DIR *, off_t loc);
|
void seekdir (DIR *, off_t loc);
|
||||||
|
Reference in New Issue
Block a user