$NetBSD: patch-af,v 1.1.1.1 2011/05/27 22:57:42 cheusov Exp $ Fix for Interix --- libcommon/getdir.c.orig Sun Jan 22 21:06:14 2006 +++ libcommon/getdir.c @@ -59,7 +59,14 @@ extern int getdents(int, struct dirent * #ifdef __hpux #define _KERNEL #endif /* __hpux */ + +#ifdef __INTERIX +#include +#define d_reclen d_namlen +#else #include +#endif + #ifdef __hpux #ifndef _INO64_T typedef unsigned long long uint64_t;