glob: Fix includes.
Resolve warning about missing header for strcmp(), and move Unix- specific includes to the Unix-specific #ifdef section. Remove include of unistd.h since it does not appear to be needed anyway.
This commit is contained in:
parent
6a87a917af
commit
0121b8c02b
1 changed files with 2 additions and 4 deletions
|
|
@ -17,6 +17,7 @@
|
|||
//
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "i_glob.h"
|
||||
|
|
@ -28,6 +29,7 @@
|
|||
#include <win_opendir.h>
|
||||
#elif defined(HAVE_DIRENT_H)
|
||||
#include <dirent.h>
|
||||
#include <sys/stat.h>
|
||||
#elif defined(__WATCOMC__)
|
||||
// Watcom has the same API in a different header.
|
||||
#include <direct.h>
|
||||
|
|
@ -37,10 +39,6 @@
|
|||
|
||||
#ifndef NO_DIRENT_IMPLEMENTATION
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <unistd.h>
|
||||
|
||||
// Only the fields d_name and (as an XSI extension) d_ino are specified
|
||||
// in POSIX.1. Other than Linux, the d_type field is available mainly
|
||||
// only on BSD systems. The remaining fields are available on many, but
|
||||
|
|
|
|||
Loading…
Reference in a new issue