#if defined (POSIX) || defined (DIRENT) || defined (__GNU_LIBRARY__)
#include <dirent.h>
-#define direct dirent
#ifndef __GNU_LIBRARY__
#define D_NAMLEN(d) strlen((d)->d_name)
#else
#define D_NAMLEN(d) ((d)->d_namlen)
#endif
#else /* not POSIX or DIRENT */
+#define direct dirent
#define D_NAMLEN(d) ((d)->d_namlen)
#if defined (USG) && !defined (sgi)
#if defined (SYSNDIR)
register char *p;
register struct directory *dir;
register struct dirfile *df;
- register struct direct *d;
+ register struct dirent *d;
dir = find_directory (dirname);
if (dir->files == 0)