diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-05 14:00:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-05 14:00:15 +0000 |
commit | e431e7d15cd5333d425d54331c07842761c8f963 (patch) | |
tree | d81002347d65862ab84f455042af5a816b981ef7 /internal.h | |
parent | 89c5e354078c4953f163c88cc6781e65136303f5 (diff) | |
download | ruby-e431e7d15cd5333d425d54331c07842761c8f963.tar.gz |
internal.h: move rb_readlink declaration
* internal.h (rb_readlink): move the declaration.
* ruby.c (dladdr_path): rb_readlink now requires the result
encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal.h b/internal.h index a1eadfa074..f352a95c0f 100644 --- a/internal.h +++ b/internal.h @@ -1266,6 +1266,9 @@ VALUE rb_str2big_gmp(VALUE arg, int base, int badcheck); int rb_bug_reporter_add(void (*func)(FILE *, void *), void *data); /* file.c (export) */ +#ifdef HAVE_READLINK +VALUE rb_readlink(VALUE path, rb_encoding *enc); +#endif #ifdef __APPLE__ VALUE rb_str_normalize_ospath(const char *ptr, long len); #endif |