summaryrefslogtreecommitdiff
path: root/sysutils/heirloom-doc/patches/patch-af
blob: 588970addc006977802177fffbb6cdf0b6edbb07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$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;