You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Joe Orton <jo...@manyfish.co.uk> on 2002/06/02 22:05:25 UTC

Re: [neon] [PATCH] Neon windows build

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