mirror of
https://github.com/troglobit/editline.git
synced 2025-05-06 04:21:24 +08:00
Remove obsolete checks, all current systems today have dirent.h
This commit is contained in:
parent
f874ad60ab
commit
7d0aff5ba3
@ -29,16 +29,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef USE_DIRENT
|
||||
#include <dirent.h>
|
||||
typedef struct dirent DIRENTRY;
|
||||
#else
|
||||
#include <sys/dir.h>
|
||||
typedef struct direct DIRENTRY;
|
||||
#endif
|
||||
|
||||
#ifndef S_ISDIR
|
||||
#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
|
||||
#endif
|
||||
|
||||
#endif /* __EDITLINE_UNIX_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user