diff libpurple/protocols/gg/lib/libgadu.c @ 32777:e2ff2ac0e022

Gadu-Gadu: synchronize internal libgadu with upstream - second encounter. Refs #343
author tomkiewicz@cpw.pidgin.im
date Fri, 21 Oct 2011 12:48:30 +0000
parents ef01f180114b
children
line wrap: on
line diff
--- a/libpurple/protocols/gg/lib/libgadu.c	Tue Oct 18 21:44:25 2011 +0000
+++ b/libpurple/protocols/gg/lib/libgadu.c	Fri Oct 21 12:48:30 2011 +0000
@@ -29,16 +29,6 @@
  */
 
 #include <sys/types.h>
-#ifdef _WIN32
-#  include <io.h>
-#  include <fcntl.h>
-#  include <errno.h>
-#  define SHUT_RDWR SD_BOTH
-#else
-#  include <sys/socket.h>
-#  include <netinet/in.h>
-#  include <arpa/inet.h>
-#endif
 #ifdef sun
 #  include <sys/filio.h>
 #endif
@@ -54,10 +44,7 @@
 #include "message.h"
 #include "deflate.h"
 
-#ifndef _WIN32
-#  include <errno.h> /* on Win32 this is included above */
-#  include <netdb.h>
-#endif
+#include <errno.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -73,6 +60,8 @@
 #  include <openssl/rand.h>
 #endif
 
+#define GG_LIBGADU_VERSION "1.11.0"
+
 /**
  * Port gniazda nasłuchującego dla połączeń bezpośrednich.
  * 
@@ -1119,7 +1108,6 @@
 	sess->resolver_cleanup(&sess->resolver, 1);
 
 	if (sess->fd != -1) {
-		shutdown(sess->fd, SHUT_RDWR);
 		close(sess->fd);
 		sess->fd = -1;
 	}