pidgin/pidgin

Fix build for platforms without AF_LOCAL definition
release-2.x.y
2014-11-22, Tomasz Wasilczyk
393916c77699
Parents 14de4c200d57
Children e38a9aa5b1f8
Fix build for platforms without AF_LOCAL definition
--- a/ChangeLog Sat Nov 22 10:26:09 2014 -0800
+++ b/ChangeLog Sat Nov 22 23:34:30 2014 +0100
@@ -11,6 +11,7 @@
Gadu-Gadu:
* Fix a bug that prevented plugin to load when compiled without GnuTLS.
(mancha) (#16431)
+ * Fix build for platforms without AF_LOCAL definition. (#16404)
MSN:
* Fix broken login due to server change (dx, TReKiE). (#16451, #16455)
--- a/libpurple/protocols/gg/lib/network.h Sat Nov 22 10:26:09 2014 -0800
+++ b/libpurple/protocols/gg/lib/network.h Sat Nov 22 23:34:30 2014 +0100
@@ -105,6 +105,10 @@
# define INADDR_NONE ((in_addr_t) 0xffffffff)
#endif
+#ifndef AF_LOCAL
+# define AF_LOCAL AF_UNIX
+#endif
+
static inline int gg_fd_set_nonblocking(int fd)
{
int success;