bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] move socket-related client parts into separate file


From: Alexey Mahotkin
Subject: Re: [PATCH] move socket-related client parts into separate file
Date: Thu, 24 Apr 2003 22:23:39 +0400
User-agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Common Lisp, i386-debian-linux)

>>>>> "DRP" == Derek Robert Price <address@hidden> writes:

 DRP> Have you tried compiling this on Windows?  Windows and OS2 are the
 DRP> only platforms that define NO_SOCKET_TO_FD that I know of and this
 DRP> will break there.  At the very least, cvsnt.mak will need to be
 DRP> modified to find the new source file, but it is possible that this
 DRP> code needs some includes from cvs.h and client.h.  Don't worry about
 DRP> OS2 so much, but we still try and keep support on Windows up to date.

 DRP> Okay, I just defined NO_SOCKET_TO_FD by hand on UNIX and attempted to
 DRP> compile and discovered that, at the least, socket-client.c needs some
 DRP> function prototypes from cvs.h.  I also got some "dereferencing
 DRP> pointer to incomplete type" errors I didn't bother to track down.

 DRP> I'm cc'ing bug-cvs in the interest of additional input.

That's a lose-lose scenario IMHO.  That means that there are ~300 lines
which could not be checked by most of the developers.  Btw, is that really
still a case for modern Win32, that sockets are not convertible to fds?

Ok, I turned on NO_SOCKET_TO_FD temporarily, and I think that this
compile-fixes it.


2003-04-24  Alexey Mahotkin <address@hidden>


Fixes for NO_SOCKET_TO_FD


 src/socket-client.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

--- ccvs/src/socket-client.c~socket-client-fix  Thu Apr 24 22:12:28 2003
+++ ccvs-alexm/src/socket-client.c      Thu Apr 24 22:14:00 2003
@@ -13,6 +13,7 @@
 #include <config.h>
 
 #include "cvs.h"
+#include "buffer.h"
 
 #include "socket-client.h"
 
@@ -55,7 +56,7 @@ static int socket_buffer_shutdown PROTO(
 
 /* Create a buffer based on a socket.  */
 
-static struct buffer *
+struct buffer *
 socket_buffer_initialize (socket, input, memory)
     int socket;
     int input;

_


--alexm




reply via email to

[Prev in Thread] Current Thread [Next in Thread]