<commit_before>--- libupnp.old/upnp/inc/upnp.h	2008-03-09 01:54:58.000000000 +0100
+++ libupnp/upnp/inc/upnp.h	2010-08-11 12:40:37.000000000 +0200
@@ -74,14 +74,16 @@
 		typedef __int64 int64_t;
 		#define PRId64 "I64d"
 		#define PRIzu "lu"
-	#endif
-	#ifdef UPNP_USE_BCBPP
+	#elif defined UPNP_USE_BCBPP
 		/* define some things Borland Builder doesn't know */
 		#define UPNP_INLINE inline
 		typedef __int64 int64_t;
 #warning The Borland C compiler is probably broken on PRId64, please someone provide a proper fix here
 		#define PRId64 "I64d"
 		#define PRIzu "zu"
+	#else
+		#define UPNP_INLINE inline
+		#define PRIzu "zu"
 	#endif
 #else
 	#define EXPORT_SPEC
--- libupnp.old/upnp/src/inc/unixutil.h	2008-02-10 02:55:34.000000000 +0100
+++ libupnp/upnp/src/inc/unixutil.h	2010-08-11 12:48:37.000000000 +0200
@@ -38,7 +38,15 @@
 #ifndef WIN32
 	#include <sys/socket.h>
 #else
-	typedef int socklen_t;
+	//typedef int socklen_t;
+	#if !defined(UNDER_CE)
+	#    define _NO_OLDNAMES 1
+	#    include <io.h>
+	#endif
+	#include <winsock2.h>
+	#include <ws2tcpip.h>
+	#define ENETUNREACH WSAENETUNREACH
+	#define net_errno (WSAGetLastError())
 	#define EAFNOSUPPORT 97
 #endif
 <commit_msg>Contribs, Libupnp: fix compilation issue<commit_after>--- libupnp.old/upnp/inc/upnp.h	2008-03-09 01:54:58.000000000 +0100
+++ libupnp/upnp/inc/upnp.h	2010-08-11 12:40:37.000000000 +0200
@@ -74,14 +74,16 @@
 		typedef __int64 int64_t;
 		#define PRId64 "I64d"
 		#define PRIzu "lu"
-	#endif
-	#ifdef UPNP_USE_BCBPP
+	#elif defined UPNP_USE_BCBPP
 		/* define some things Borland Builder doesn't know */
 		#define UPNP_INLINE inline
 		typedef __int64 int64_t;
 #warning The Borland C compiler is probably broken on PRId64, please someone provide a proper fix here
 		#define PRId64 "I64d"
 		#define PRIzu "zu"
+	#else
+		#define UPNP_INLINE inline
+		#define PRIzu "zu"
 	#endif
 #else
 	#define EXPORT_SPEC
--- libupnp.old/upnp/src/inc/unixutil.h	2008-02-10 02:55:34.000000000 +0100
+++ libupnp/upnp/src/inc/unixutil.h	2010-08-11 12:48:37.000000000 +0200
@@ -38,7 +38,15 @@
 #ifndef WIN32
 	#include <sys/socket.h>
 #else
-	typedef int socklen_t;
+	//typedef int socklen_t;
+	#if !defined(UNDER_CE)
+	#    define _NO_OLDNAMES 1
+	#    include <io.h>
+	#endif
+	#include <winsock2.h>
+	#include <ws2tcpip.h>
+	#define ENETUNREACH WSAENETUNREACH
+	#define net_errno (WSAGetLastError())
 	#define EAFNOSUPPORT 97
 #endif
 
diff -ruN libupnp/threadutil/inc/ithread.h libupnp.new/threadutil/inc/ithread.h
--- libupnp/threadutil/inc/ithread.h	2008-03-22 17:36:03.000000000 +0100
+++ libupnp.new/threadutil/inc/ithread.h	2010-11-02 15:33:43.544547707 +0100
@@ -35,7 +35,7 @@
 extern "C" {
 #endif
 
-
+#undef HAVE_CONFIG_H
 #include <pthread.h>
 #ifndef WIN32
 	#include <unistd.h>
{'fraction_non_alphanumeric': 0.13898916967509026, 'fraction_numerical': 0.1292418772563177, 'mean_word_length': 3.9659498207885306, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 9, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5208526', 'n_tokens_mistral': 1489, 'n_tokens_neox': 1195, 'n_words': 261}