Remove obsolete checks, all current systems today have dirent.h

This commit is contained in:
Joachim Nilsson 2010-07-18 03:37:23 +02:00
parent f874ad60ab
commit 7d0aff5ba3

View File

@ -29,16 +29,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#ifdef USE_DIRENT
#include <dirent.h> #include <dirent.h>
typedef struct dirent DIRENTRY; 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__ */ #endif /* __EDITLINE_UNIX_H__ */