pkgsrc/sysutils/heirloom-doc/patches/patch-af
cheusov c02ca0f45e The Heirloom Project provides traditional implementations of standard
Unix utilities. In many cases, they have been derived from original
Unix material released as Open Source by Caldera and Sun.
2011-05-27 22:57:42 +00:00

20 lines
456 B
Text

$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;