Mercurial > pidgin
comparison libpurple/protocols/gg/lib/libgadu.c @ 32672:3828a61c44da
A boring and large patch so I can merge heads.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Fri, 23 Dec 2011 08:21:58 +0000 |
parents | 15c227a35207 |
children |
comparison
equal
deleted
inserted
replaced
32671:0e69949b3e61 | 32672:3828a61c44da |
---|---|
27 * | 27 * |
28 * \brief Główny moduł biblioteki | 28 * \brief Główny moduł biblioteki |
29 */ | 29 */ |
30 | 30 |
31 #include <sys/types.h> | 31 #include <sys/types.h> |
32 #ifdef _WIN32 | 32 #ifdef sun |
33 # include <io.h> | 33 # include <sys/filio.h> |
34 # include <fcntl.h> | |
35 # include <errno.h> | |
36 # define SHUT_RDWR SD_BOTH | |
37 #else | |
38 # include <sys/socket.h> | |
39 # include <netinet/in.h> | |
40 # include <arpa/inet.h> | |
41 # ifdef sun | |
42 # include <sys/filio.h> | |
43 # endif | |
44 #endif | 34 #endif |
45 | 35 |
46 #include "compat.h" | 36 #include "compat.h" |
47 #include "libgadu.h" | 37 #include "libgadu.h" |
48 #include "libgadu-config.h" | |
49 #include "protocol.h" | 38 #include "protocol.h" |
50 #include "resolver.h" | 39 #include "resolver.h" |
51 #include "libgadu-internal.h" | 40 #include "libgadu-internal.h" |
52 #include "encoding.h" | 41 #include "encoding.h" |
53 #include "libgadu-debug.h" | 42 #include "libgadu-debug.h" |
54 #include "session.h" | 43 #include "session.h" |
55 #include "message.h" | 44 #include "message.h" |
56 #include "deflate.h" | 45 #include "deflate.h" |
57 | 46 |
58 #ifndef _WIN32 | 47 #include <errno.h> |
59 # include <errno.h> /* on Win32 this is included above */ | |
60 # include <netdb.h> | |
61 #endif | |
62 #include <stdarg.h> | 48 #include <stdarg.h> |
63 #include <stdio.h> | 49 #include <stdio.h> |
64 #include <stdlib.h> | 50 #include <stdlib.h> |
65 #include <string.h> | 51 #include <string.h> |
66 #include <signal.h> | 52 #include <signal.h> |
1120 #endif | 1106 #endif |
1121 | 1107 |
1122 sess->resolver_cleanup(&sess->resolver, 1); | 1108 sess->resolver_cleanup(&sess->resolver, 1); |
1123 | 1109 |
1124 if (sess->fd != -1) { | 1110 if (sess->fd != -1) { |
1125 shutdown(sess->fd, SHUT_RDWR); | |
1126 close(sess->fd); | 1111 close(sess->fd); |
1127 sess->fd = -1; | 1112 sess->fd = -1; |
1128 } | 1113 } |
1129 | 1114 |
1130 #ifdef GG_CONFIG_HAVE_GNUTLS | 1115 #ifdef GG_CONFIG_HAVE_GNUTLS |