/[cvs]/ccvs/windows-NT/rcmd.c
ViewVC logotype

Diff of /ccvs/windows-NT/rcmd.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by kingdon, Wed Jul 9 06:35:16 1997 UTC revision 1.11 by conradpino, Mon Sep 26 03:09:15 2005 UTC
# Line 20  Line 20 
20  #include <malloc.h>  #include <malloc.h>
21  #include <errno.h>  #include <errno.h>
22    
23  #ifdef HAVE_WINSOCK_H  #include <sys/socket.h>
   #include <winsock.h>  
 #else  
   #include <sys/types.h>  
   #include <sys/socket.h>  
   #include <netinet/in.h>  
   #include <netdb.h>  
   typedef int SOCKET;  
   #define closesocket close  
   #define SOCK_ERRNO errno  
   #define SOCK_STRERROR strerror  
   /* Probably would be cleaner to just use EADDRINUSE, as NT has that too.  */  
   #define WSAEADDRINUSE EADDRINUSE  
   /* Probably would be cleaner to just check for < 0.  Might want to  
      double-check that doing so would seem to work on NT.  */  
   #define SOCKET_ERROR -1  
   #define INVALID_SOCKET -1  
 #endif  
24    
25  #include <stdio.h>  #include <stdio.h>
26  #include <assert.h>  #include <assert.h>

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26