summaryrefslogtreecommitdiff
path: root/misc/rpm/patches/patch-build_rpmfc.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/rpm/patches/patch-build_rpmfc.c')
-rw-r--r--misc/rpm/patches/patch-build_rpmfc.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/rpm/patches/patch-build_rpmfc.c b/misc/rpm/patches/patch-build_rpmfc.c
new file mode 100644
index 00000000000..1cd928db346
--- /dev/null
+++ b/misc/rpm/patches/patch-build_rpmfc.c
@@ -0,0 +1,17 @@
+$NetBSD: patch-build_rpmfc.c,v 1.1 2013/09/13 12:41:32 ryoon Exp $
+
+* basemname(3) requires libgen.h on NetBSD.
+
+--- build/rpmfc.c.orig 2013-06-10 15:55:10.000000000 +0000
++++ build/rpmfc.c
+@@ -16,6 +16,10 @@
+ #include <rpm/rpmfi.h>
+ #include <rpm/rpmstrpool.h>
+
++#if defined(__NetBSD__)
++#include <libgen.h>
++#endif
++
+ #include "build/rpmbuild_internal.h"
+
+ #include "debug.h"