sys/dir.h is an old BSD'ism not carried by klibc,
include dirent directly.
compile tested against glibc.
Signed-off-by: maximilian attems <max@stro.at>
*/
#include <sys/param.h>
-#include <sys/dir.h>
+#include <sys/types.h>
#include <sys/stat.h>
+#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void
findin(char *dir, char *cp) {
DIR *dirp;
- struct direct *dp;
+ struct dirent *dp;
char *d, *dd;
int l;
char dirbuf[1024];