mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* io.c (READ_DATA_PENDING): uClibc support.
* random.c (rand_init): ditto. * ext/socket/{addinfo.h,getaddrinfo.c} (gai_strerror): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4e840877aa
commit
2fcd221fec
6 changed files with 15 additions and 5 deletions
|
@ -1,3 +1,11 @@
|
|||
Wed Feb 27 13:18:49 2002 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* io.c (READ_DATA_PENDING): uClibc support.
|
||||
|
||||
* random.c (rand_init): ditto.
|
||||
|
||||
* ext/socket/{addinfo.h,getaddrinfo.c} (gai_strerror): ditto.
|
||||
|
||||
Wed Feb 27 07:05:17 2002 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* ext/digest/sha2/sha2.c: Merge from rough. Fix a couple of
|
||||
|
|
|
@ -154,7 +154,7 @@ extern int getnameinfo __P((
|
|||
|
||||
extern void freehostent __P((struct hostent *));
|
||||
extern void freeaddrent __P((struct addrinfo *));
|
||||
extern char *gai_strerror __P((int));
|
||||
extern const char *gai_strerror __P((int));
|
||||
|
||||
/* In case there is no definition of offsetof() provided - though any proper
|
||||
Standard C system should have one. */
|
||||
|
|
|
@ -191,7 +191,7 @@ if (pai->ai_flags & AI_CANONNAME) {\
|
|||
|
||||
#define ERR(err) { error = (err); goto bad; }
|
||||
|
||||
char *
|
||||
const char *
|
||||
gai_strerror(ecode)
|
||||
int ecode;
|
||||
{
|
||||
|
|
2
io.c
2
io.c
|
@ -119,6 +119,8 @@ static VALUE lineno;
|
|||
# define READ_DATA_PENDING_COUNT(fp) ((fp)->FILE_COUNT)
|
||||
#elif defined(__BEOS__)
|
||||
# define READ_DATA_PENDING(fp) (fp->_state._eof == 0)
|
||||
#elif defined(__UCLIBC__)
|
||||
# define READ_DATA_PENDING(fp) ((fp)->bufpos < (fp)->bufend)
|
||||
#else
|
||||
/* requires systems own version of the ReadDataPending() */
|
||||
extern int ReadDataPending();
|
||||
|
|
2
random.c
2
random.c
|
@ -88,7 +88,7 @@ rand_init(seed)
|
|||
int old;
|
||||
static unsigned int saved_seed;
|
||||
|
||||
#ifdef HAVE_RANDOM
|
||||
#if defined HAVE_RANDOM && !defined __UCLIBC__
|
||||
if (first == 1) {
|
||||
initstate(1, state, sizeof state);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#define RUBY_VERSION "1.7.2"
|
||||
#define RUBY_RELEASE_DATE "2002-02-26"
|
||||
#define RUBY_RELEASE_DATE "2002-02-27"
|
||||
#define RUBY_VERSION_CODE 172
|
||||
#define RUBY_RELEASE_CODE 20020226
|
||||
#define RUBY_RELEASE_CODE 20020227
|
||||
|
|
Loading…
Reference in a new issue