Skip to content

Commit

Permalink
Fix build under Solaris 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
tron committed Mar 19, 2015
1 parent e9b3c49 commit 356a0f0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion textproc/mdocml/distinfo
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.37 2015/03/14 10:24:38 wiz Exp $
$NetBSD: distinfo,v 1.38 2015/03/19 08:29:40 tron Exp $

SHA1 (mdocml-1.13.3.tar.gz) = 3ccfbb492a477b84343c97de743b3dd5bd3c763b
RMD160 (mdocml-1.13.3.tar.gz) = 47d1096708b45b15d8f198404fd6608d164bb66a
Size (mdocml-1.13.3.tar.gz) = 358971 bytes
SHA1 (patch-compat_fts.c) = bc20484964d8ff0aa2af07d581bad39a6c056a5a
SHA1 (patch-roff.7) = 22335024f83abc347ca39aabf7ab8d9cb38f7db2
17 changes: 17 additions & 0 deletions textproc/mdocml/patches/patch-compat_fts.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,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)
{

0 comments on commit 356a0f0

Please sign in to comment.