зеркало из https://github.com/github/ruby.git
* ext/socket/option.c: define IFNAMSIZ if not available.
fix compilation error on mingw32. reported by nobu. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
bcd39a0851
Коммит
6446be302b
|
@ -1,3 +1,8 @@
|
|||
Sun Dec 26 19:37:37 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/option.c: define IFNAMSIZ if not available.
|
||||
fix compilation error on mingw32. reported by nobu.
|
||||
|
||||
Sun Dec 26 12:16:29 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/rdoc/ri/paths.rb (RDoc::RI::Paths::HOMEDIR): no exception if
|
||||
|
|
|
@ -465,6 +465,9 @@ rb_if_indextoname(const char *succ_prefix, const char *fail_prefix, unsigned int
|
|||
else
|
||||
return snprintf(buf, len, "%s%s", succ_prefix, ifbuf);
|
||||
#else
|
||||
# ifndef IFNAMSIZ
|
||||
# define IFNAMSIZ (sizeof(unsigned int)*3+1)
|
||||
# endif
|
||||
return snprintf(buf, len, "%s%u", fail_prefix, ifindex);
|
||||
#endif
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче