/[cvs]/ccvs/src/socket-client.h
ViewVC logotype

Diff of /ccvs/src/socket-client.h

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

revision 1.7 by dprice, Sun Sep 25 00:28:51 2005 UTC revision 1.8 by dprice, Sun Sep 25 00:31:51 2005 UTC
# Line 13  Line 13 
13  #ifndef SOCKET_CLIENT_H__  #ifndef SOCKET_CLIENT_H__
14  #define SOCKET_CLIENT_H__ 1  #define SOCKET_CLIENT_H__ 1
15    
16  # if defined SOCK_ERRNO || defined SOCK_STRERROR  #if defined SOCK_ERRNO || defined SOCK_STRERROR
17  #   ifdef HAVE_WINSOCK_H  # ifdef HAVE_WINSOCK_H
18  #     include <winsock.h>  #  include <winsock.h>
19  #   else /* No winsock.h */  # else /* No winsock.h */
20  #     include <sys/socket.h>  #  include <sys/socket.h>
21  #     include <netinet/in.h>  #  include <netinet/in.h>
22  #     include <arpa/inet.h>  #  include <arpa/inet.h>
23  #     include <netdb.h>  #  include <netdb.h>
24  #   endif /* No winsock.h */  # endif /* No winsock.h */
25  # endif  #endif
26    
27  struct buffer *socket_buffer_initialize  struct buffer *socket_buffer_initialize
28    (int, int, void (*) (struct buffer *));    (int, int, void (*) (struct buffer *));
# Line 31  struct buffer *socket_buffer_initialize Line 31  struct buffer *socket_buffer_initialize
31     do not set errno, but that this macro should be used to obtain an     do not set errno, but that this macro should be used to obtain an
32     error code.  This probably doesn't make sense unless     error code.  This probably doesn't make sense unless
33     NO_SOCKET_TO_FD is also defined. */     NO_SOCKET_TO_FD is also defined. */
34  # ifndef SOCK_ERRNO  #ifndef SOCK_ERRNO
35  #   define SOCK_ERRNO errno  # define SOCK_ERRNO errno
36  # endif  #endif
37    
38  /* If SOCK_STRERROR is defined, then the error codes returned by  /* If SOCK_STRERROR is defined, then the error codes returned by
39     socket operations are not known to strerror, and this macro must be     socket operations are not known to strerror, and this macro must be
40     used instead to convert those error codes to strings. */     used instead to convert those error codes to strings. */
41  # ifndef SOCK_STRERROR  #ifndef SOCK_STRERROR
42  #   define SOCK_STRERROR strerror  # define SOCK_STRERROR strerror
43    
44  #   include <string.h>  # include <string.h>
45  #   ifndef strerror  # ifndef strerror
46  extern char *strerror (int);  extern char *strerror (int);
47  #   endif  # endif
48  # endif /* ! SOCK_STRERROR */  #endif /* ! SOCK_STRERROR */
49    
50  #endif /* SOCKET_CLIENT_H__ */  #endif /* SOCKET_CLIENT_H__ */

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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