summaryrefslogtreecommitdiff
path: root/sysutils/tree/patches/patch-tree.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/tree/patches/patch-tree.h')
-rw-r--r--sysutils/tree/patches/patch-tree.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sysutils/tree/patches/patch-tree.h b/sysutils/tree/patches/patch-tree.h
new file mode 100644
index 00000000000..125c7e44cef
--- /dev/null
+++ b/sysutils/tree/patches/patch-tree.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-tree.h,v 1.1 2013/08/15 12:40:06 richard Exp $
+
+--- tree.h.orig 2011-06-24 12:55:58.000000000 +0000
++++ tree.h
+@@ -59,6 +59,10 @@
+ #define mbstowcs(w,m,x) mbsrtowcs(w,(const char**)(& #m),x,NULL)
+ #endif
+
++#ifdef __sun
++# undef S_ISDOOR
++#endif
++
+ /* Should probably use strdup(), but we like our xmalloc() */
+ #define scopy(x) strcpy(xmalloc(strlen(x)+1),(x))
+ #define MINIT 30 /* number of dir entries to initially allocate */