summaryrefslogtreecommitdiff
path: root/lang/ruby18-base/patches
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2009-05-09 05:32:39 +0000
committertaca <taca@pkgsrc.org>2009-05-09 05:32:39 +0000
commit2e75c4c8207807eac058e5fed0ae6143282b3079 (patch)
tree190c9f7a41a38a8d0e50d6466964a6561b88fb42 /lang/ruby18-base/patches
parented9a9a4ebb405c152e6c326bfe2dd0088c0cc494 (diff)
downloadpkgsrc-2e75c4c8207807eac058e5fed0ae6143282b3079.tar.gz
Apply a patch to fix compile error on Solaris 10. The patch was supplied
by KAWAKUBO Hiroshi via PR pkg/41386.
Diffstat (limited to 'lang/ruby18-base/patches')
-rw-r--r--lang/ruby18-base/patches/patch-bi18
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/ruby18-base/patches/patch-bi b/lang/ruby18-base/patches/patch-bi
new file mode 100644
index 00000000000..d6333c50292
--- /dev/null
+++ b/lang/ruby18-base/patches/patch-bi
@@ -0,0 +1,18 @@
+$NetBSD: patch-bi,v 1.3 2009/05/09 05:32:39 taca Exp $
+
+Fix build problem on Solaris 10:
+ http://redmine.ruby-lang.org/repositories/revision/2?rev=22812
+
+--- file.c.orig 2009-03-23 17:44:31.000000000 +0900
++++ file.c
+@@ -68,6 +68,10 @@ char *strrchr _((const char*,const char)
+ #include <sys/mkdev.h>
+ #endif
+
++#if defined(HAVE_FCNTL_H)
++#include <fcntl.h>
++#endif
++
+ #if !defined HAVE_LSTAT && !defined lstat
+ #define lstat stat
+ #endif