Always include dirent.h on non-Windows
This commit is contained in:
@@ -66,12 +66,9 @@ extern void seekdir(DIR *, long);
|
|||||||
extern int closedir(DIR *);
|
extern int closedir(DIR *);
|
||||||
|
|
||||||
# define rewinddir(dirp) seekdir(dirp, 0L)
|
# define rewinddir(dirp) seekdir(dirp, 0L)
|
||||||
#elif defined(__FreeBSD__)
|
|
||||||
/* FreeBSD uses dirent.h instead of sys/dir.h */
|
|
||||||
# include <dirent.h>
|
|
||||||
#else
|
#else
|
||||||
/* On linux and macOS, use the standard functions and types */
|
/* On linux and macOS, use the standard functions and types */
|
||||||
# include <sys/dir.h>
|
# include <dirent.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /*PLAT_DIR_H*/
|
#endif /*PLAT_DIR_H*/
|
||||||
|
Reference in New Issue
Block a user