summaryrefslogtreecommitdiff
path: root/textproc/mdocml/patches/patch-compat_fts.c
blob: 9804cf8fd3e35ae582e886e8473755646a24a986 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-compat_fts.c,v 1.6 2015/12/10 02:50:19 joerg Exp $

Fix build under Solaris 10 and HP-UX.

--- compat_fts.c.orig	2015-03-13 12:38:38.000000000 +0000
+++ compat_fts.c
@@ -76,6 +76,10 @@ static int	 fts_safe_changedir(FTS *, FT
 
 #define	FCHDIR(sp, fd)	(!ISSET(FTS_NOCHDIR) && fchdir(fd))
 
+#if defined(__sun__) || defined(__hpux)
+#define dirfd(fd) ((fd)->dd_fd)
+#endif
+
 FTS *
 fts_open(char * const *argv, int options, void *dummy)
 {