From 0121b8c02bd1746767e17fa41b848a11744f593e Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Thu, 1 Nov 2018 18:38:19 -0400 Subject: [PATCH] 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. --- src/i_glob.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/i_glob.c b/src/i_glob.c index 9cd91ad4..f5284953 100644 --- a/src/i_glob.c +++ b/src/i_glob.c @@ -17,6 +17,7 @@ // #include +#include #include #include "i_glob.h" @@ -28,6 +29,7 @@ #include #elif defined(HAVE_DIRENT_H) #include +#include #elif defined(__WATCOMC__) // Watcom has the same API in a different header. #include @@ -37,10 +39,6 @@ #ifndef NO_DIRENT_IMPLEMENTATION -#include -#include -#include - // 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