summaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-31 09:58:41 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-31 09:58:41 +0000
commitd682b47684d0a7d775ff7d849ecce08d1b530a25 (patch)
tree98db89de12857609052bbb8282450a85bbea2f62 /win32
parent38c550e4af40d4b7b94600724fa9199d6634c9b7 (diff)
downloadruby-d682b47684d0a7d775ff7d849ecce08d1b530a25.tar.gz
ruby-d682b47684d0a7d775ff7d849ecce08d1b530a25.tar.xz
ruby-d682b47684d0a7d775ff7d849ecce08d1b530a25.zip
* {bcc,win}32/Makefile.sub (config.h): define ssize_t.
* io.c (copy_stream_body): some platform don't have O_NOCTTY. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub6
1 files changed, 6 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index c61812212..61d6afc6f 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -384,6 +384,12 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
#define uint64_t unsigned __int64
#define HAVE_INTPTR_T 1
#define HAVE_UINTPTR_T 1
+#define HAVE_SSIZE_T 1
+!if "$(ARCH)" == "AMD64" || "$(ARCH)" == "IA64"
+#define ssize_t __int64
+!else
+#define ssize_t int
+!endif
#define GETGROUPS_T int
#define RETSIGTYPE void
!if !defined(WIN32_WCE)