Mercurial > pidgin
comparison libpurple/protocols/gg/lib/libgadu.c @ 32819:2c6510167895 default tip
propagate from branch 'im.pidgin.pidgin.2.x.y' (head 3315c5dfbd0ad16511bdcf865e5b07c02d07df24)
to branch 'im.pidgin.pidgin' (head cbd1eda6bcbf0565ae7766396bb8f6f419cb6a9a)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 02 Jun 2012 02:30:49 +0000 |
parents | e2ff2ac0e022 |
children |
comparison
equal
deleted
inserted
replaced
32818:01ff09d4a463 | 32819:2c6510167895 |
---|---|
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 |