From b2acbb2c67e8d9dc5eaf4823f5e547c57832c443 Mon Sep 17 00:00:00 2001 From: usa Date: Mon, 31 Mar 2008 09:58:41 +0000 Subject: * {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: svn+ssh://ci.ruby-lang.org/ruby/trunk@15865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/Makefile.sub | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'win32') diff --git a/win32/Makefile.sub b/win32/Makefile.sub index c61812212b..61d6afc6fb 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) -- cgit v1.2.3