diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-22 05:33:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-07-22 05:33:54 +0000 |
commit | 692349734c91d214effa8ebc446c4f128e0fe098 (patch) | |
tree | 02f34d7e3a591186505dfe5d8ce2c89c878ce93a /ext/socket | |
parent | 414ac300d602927a605327ddaf0fab36ab4f5d21 (diff) | |
download | ruby-692349734c91d214effa8ebc446c4f128e0fe098.tar.gz ruby-692349734c91d214effa8ebc446c4f128e0fe098.tar.xz ruby-692349734c91d214effa8ebc446c4f128e0fe098.zip |
* file.c (rb_file_s_rename): deleted code to get rid of a bug of
old Cygwin.
* file.c (rb_file_truncate): added prototype of GetLastError()
on cygwin. [ruby-dev:31239]
* include/ruby/intern.h (is_ruby_native_thread): prototype.
* missing/strftime.c (strftime): fix printf format and actual
arguments.
* ext/Win32API/Win32API.c (Win32API_initialize): ditto.
* ext/tk/tcltklib.c (ip_finalize): ditto.
* ext/win32ole/win32ole.c (lcid_installed): ditto.
* ext/socket/getnameinfo.c: include stdio.h always.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r-- | ext/socket/getnameinfo.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/socket/getnameinfo.c b/ext/socket/getnameinfo.c index dcfdc6b35..6214359cd 100644 --- a/ext/socket/getnameinfo.c +++ b/ext/socket/getnameinfo.c @@ -35,6 +35,7 @@ */ #include "ruby/config.h" +#include <stdio.h> #include <sys/types.h> #ifndef _WIN32 #if defined(__BEOS__) @@ -51,15 +52,11 @@ #endif #include <netdb.h> #if defined(HAVE_RESOLV_H) -#ifdef _SX -#include <stdio.h> -#endif #include <resolv.h> #endif #endif #ifdef _WIN32 #include <winsock2.h> -#include <stdio.h> #define snprintf _snprintf #endif |