Files
2013-09-26 17:14:40 +02:00

21 lines
456 B
Plaintext

$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 <dirent.h>
+#define d_reclen d_namlen
+#else
#include <sys/dirent.h>
+#endif
+
#ifdef __hpux
#ifndef _INO64_T
typedef unsigned long long uint64_t;