summaryrefslogtreecommitdiff
path: root/misc/rpm/patches/patch-misc_fts.h
diff options
context:
space:
mode:
Diffstat (limited to 'misc/rpm/patches/patch-misc_fts.h')
-rw-r--r--misc/rpm/patches/patch-misc_fts.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/rpm/patches/patch-misc_fts.h b/misc/rpm/patches/patch-misc_fts.h
new file mode 100644
index 00000000000..5a1a619fee9
--- /dev/null
+++ b/misc/rpm/patches/patch-misc_fts.h
@@ -0,0 +1,17 @@
+$NetBSD: patch-misc_fts.h,v 1.1 2013/09/13 12:41:32 ryoon Exp $
+
+* Definition for NetBSD.
+
+--- misc/fts.h.orig 2013-06-10 15:55:10.000000000 +0000
++++ misc/fts.h
+@@ -61,6 +61,10 @@
+ # define _D_EXACT_NAMLEN(d) (strlen((d)->d_name))
+ #endif
+
++#if defined(__NetBSD__)
++# define _D_EXACT_NAMLEN(d) ((d)->d_reclen)
++#endif
++
+ #endif
+
+ #include <sys/types.h>