/pidgin/main: 393916c77699: Fix build for platforms without AF_L...

Tomasz Wasilczyk <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 393916c77699c60a13ddf8e7db5feb94e61e4aa5
Author:	 Tomasz Wasilczyk <[email protected]>
Date:	 2014-11-22 23:34 +0100
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/393916c77699

Description:

Fix build for platforms without AF_LOCAL definition

diffstat:

 ChangeLog                            |  1 +
 libpurple/protocols/gg/lib/network.h |  4 ++++
 2 files changed, 5 insertions(+), 0 deletions(-)

diffs (25 lines):

diff --git a/ChangeLog b/ChangeLog
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,7 @@ version 2.10.11 (11/23/14):
 	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)
diff --git a/libpurple/protocols/gg/lib/network.h b/libpurple/protocols/gg/lib/network.h
--- a/libpurple/protocols/gg/lib/network.h
+++ b/libpurple/protocols/gg/lib/network.h
@@ -105,6 +105,10 @@ static inline void gg_win32_init_network
 #  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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.