From: maximilian attems Date: Thu, 24 Jul 2008 12:25:06 +0000 (+0200) Subject: whereis: include dirent.h instead sys/dir.h X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7574f09b3d7c1cf2842819ac922b7fc056892e18;p=util-linux whereis: include dirent.h instead sys/dir.h sys/dir.h is an old BSD'ism not carried by klibc, include dirent directly. compile tested against glibc. Signed-off-by: maximilian attems --- diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c index 43153799..71ee6835 100644 --- a/misc-utils/whereis.c +++ b/misc-utils/whereis.c @@ -38,8 +38,9 @@ */ #include -#include +#include #include +#include #include #include #include @@ -318,7 +319,7 @@ find(char **dirs, char *cp) { void findin(char *dir, char *cp) { DIR *dirp; - struct direct *dp; + struct dirent *dp; char *d, *dd; int l; char dirbuf[1024];