From 7574f09b3d7c1cf2842819ac922b7fc056892e18 Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Thu, 24 Jul 2008 14:25:06 +0200 Subject: [PATCH] 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 --- misc-utils/whereis.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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]; -- 2.39.5