1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

Fix build with with libpurple.8

PR:		158070
Submitted by:	Mark Atkinson <atkin901@gmail.com>
Approved by:	John Prather <john.c.prather@gmail.com> (maintainer)
This commit is contained in:
Emanuel Haupt 2011-06-21 20:55:07 +00:00
parent 12e97ad8fe
commit 6e774929fa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276038
3 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,13 @@
--- ./src/purple/purple-dnsquery.c.orig 2010-11-03 05:13:51.000000000 +0100
+++ ./src/purple/purple-dnsquery.c 2011-06-21 11:23:35.000000000 +0200
@@ -22,6 +22,10 @@
#include "glib.h"
+#include "version.h"
+#if PURPLE_VERSION_CHECK(2,8,0)
+#include "account.h"
+#endif
#include "dnssrv.h"
#include "sipe-backend.h"

View File

@ -0,0 +1,13 @@
--- ./src/purple/purple-plugin.c.orig 2010-11-03 05:13:51.000000000 +0100
+++ ./src/purple/purple-plugin.c 2011-06-21 11:23:35.000000000 +0200
@@ -506,6 +506,10 @@
NULL, /* get_moods */
NULL, /* set_public_alias */
NULL, /* get_public_alias */
+#if PURPLE_VERSION_CHECK(2,8,0)
+ NULL, /* add_buddy_with_invite */
+ NULL, /* add_buddies_with_invite */
+#endif
#endif
#endif
#endif

View File

@ -0,0 +1,31 @@
--- ./src/purple/purple-private.h.orig 2010-11-03 05:13:51.000000000 +0100
+++ ./src/purple/purple-private.h 2011-06-21 11:23:35.000000000 +0200
@@ -20,18 +20,28 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include "version.h"
+
/* Forward declarations */
struct sipe_core_public;
struct _PurpleAccount;
struct _PurpleConnection;
+#if PURPLE_VERSION_CHECK(2,8,0)
+struct _PurpleSrvTxtQueryData;
+#else
struct _PurpleSrvQueryData;
+#endif
struct _PurpleXfer;
struct sipe_backend_private {
struct sipe_core_public *public;
struct _PurpleConnection *gc;
struct _PurpleAccount *account;
+#if PURPLE_VERSION_CHECK(2,8,0)
+ struct _PurpleSrvTxtQueryData *dns_query;
+#else
struct _PurpleSrvQueryData *dns_query;
+#endif
time_t last_keepalive;
};