pidgin/pidgin

Fix the zephyr build on FreeBSD

2021-02-03, Gary Kramlich
19a07f7215f8
Parents 81e94476e3ac
Children aef08fe14d13
Fix the zephyr build on FreeBSD

Testing Done:
Compiled on linux, but should be fine on FreeBSD.

Reviewed at https://reviews.imfreedom.org/r/474/
--- a/libpurple/protocols/zephyr/zephyr.c Wed Feb 03 18:49:38 2021 -0600
+++ b/libpurple/protocols/zephyr/zephyr.c Wed Feb 03 18:51:15 2021 -0600
@@ -49,10 +49,6 @@
#define ZEPHYR_TYPING_SEND_TIMEOUT 15
#define ZEPHYR_TYPING_RECV_TIMEOUT 10
-#ifndef HOST_NAME_MAX
-# define HOST_NAME_MAX 255
-#endif
-
static PurpleProtocol *my_protocol = NULL;
static GSList *cmds = NULL;
--- a/libpurple/protocols/zephyr/zephyr_account.h Wed Feb 03 18:49:38 2021 -0600
+++ b/libpurple/protocols/zephyr/zephyr_account.h Wed Feb 03 18:51:15 2021 -0600
@@ -29,6 +29,10 @@
#include "internal.h"
+#ifndef HOST_NAME_MAX
+# define HOST_NAME_MAX 255
+#endif
+
typedef struct _zephyr_account zephyr_account;
typedef enum {