[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [neon] [PATCH] Neon windows build

From: Joe Orton <joe_at_manyfish.co.uk>
Date: 2002-06-03 00:05:25 CEST

On Sun, Jun 02, 2002 at 05:59:47PM +0200, Sander Striker wrote:
> This gets the windows build partly going again.

Thanks!

> There is still a problem with the subversion build:
...
> But I don't really know how to fix this (apart from reverting to int
> instead of ssize_t).

Can you try this patch?

--- ne_utils.h 13 Apr 2002 22:13:02 -0000 1.12
+++ ne_utils.h 2 Jun 2002 21:59:19 -0000
@@ -65,11 +65,6 @@
 #define min(a,b) ((a)<(b)?(a):(b))
 #endif
 
-#ifdef WIN32
-/* some of the API uses ssize_t so we need to define it. */
-#define ssize_t int
-#endif
-
 /* CONSIDER: mutt has a nicer way of way of doing debugging output... maybe
  * switch to like that. */
 
--- ne_socket.h 19 May 2002 17:08:10 -0000 1.29
+++ ne_socket.h 2 Jun 2002 21:59:02 -0000
@@ -41,6 +41,11 @@
 
 BEGIN_NEON_DECLS
 
+#if defined(WIN32) && !defined(ssize_t)
+/* define ssize_t for Win32. */
+#define ssize_t int
+#endif
+
 #define NE_SOCK_ERROR -1
 /* Read/Write timed out */
 #define NE_SOCK_TIMEOUT -2

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Jun 3 00:08:58 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.