aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--missing.h2
-rw-r--r--string.c2
3 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c3d472f738..9719292bb7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Sep 13 14:27:47 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * string.c, missing.h: failed to build on powerpc-apple-darwin7.9.0
+ because of crypt argument's constness mismatch. (I hope this works)
+ (http://mput.dip.jp/autobuild/ruby-trunk/log/20050913T110001.gz)
+
Tue Sep 13 12:33:05 2005 <why@ruby-lang.org>
* lib/yaml.rb: reworking YAML::Stream to use the new
diff --git a/missing.h b/missing.h
index a4616950e3..cb4f12a121 100644
--- a/missing.h
+++ b/missing.h
@@ -32,7 +32,7 @@ extern double atanh _((double));
#endif
#ifndef HAVE_CRYPT
-extern char *crypt _((char *, char *));
+extern char *crypt _((const char *, const char *));
#endif
#ifndef HAVE_DUP2
diff --git a/string.c b/string.c
index fe27fd4c2f..750e920bbf 100644
--- a/string.c
+++ b/string.c
@@ -4141,7 +4141,7 @@ rb_str_oct(VALUE str)
static VALUE
rb_str_crypt(VALUE str, VALUE salt)
{
- extern char *crypt(char *, char *);
+ extern char *crypt(const char *, const char *);
VALUE result;
char *s;