summaryrefslogtreecommitdiff
path: root/textproc/mdocml/patches/patch-compat_fts.c
blob: 6b0e4191e8dd60e931ceb6531be66f29a5f138f3 (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.3 2015/03/19 08:29:40 tron Exp $

Fix build under Solaris 10.

--- compat_fts.c.orig	2015-03-13 12:38:38.000000000 +0000
+++ compat_fts.c	2015-03-19 08:22:11.000000000 +0000
@@ -76,6 +76,10 @@
 
 #define	FCHDIR(sp, fd)	(!ISSET(FTS_NOCHDIR) && fchdir(fd))
 
+#ifdef __sun__
+#define dirfd(fd) ((fd)->dd_fd)
+#endif
+
 FTS *
 fts_open(char * const *argv, int options, void *dummy)
 {