pidgin/pidgin

Fixing building on Haiku
release-2.x.y
2021-09-11, Haiku Ports Team
f14a311b8313
Parents f5eba60cf093
Children 59a77978ca08
Fixing building on Haiku

This patch came from Haiku and was part of their GSoC project for creating a libpurple UI. The original patch can be found at https://github.com/haikuports/haikuports/commit/85fd8fe1ba987c82bc94968a82531c05247b52ad

Testing Done:
Compile only.

Reviewed at https://reviews.imfreedom.org/r/916/
--- a/libpurple/network.c Thu Jul 08 21:55:30 2021 -0500
+++ b/libpurple/network.c Sat Sep 11 11:51:05 2021 -0500
@@ -57,6 +57,12 @@
#include <idna.h>
#endif
+#ifdef __HAIKU__
+# ifndef SIOCGIFCONF
+# include <sys/sockio.h>
+# endif
+#endif
+
/*
* Calling sizeof(struct ifreq) isn't always correct on
* Mac OS X (and maybe others).
--- a/libpurple/stun.c Thu Jul 08 21:55:30 2021 -0500
+++ b/libpurple/stun.c Sat Sep 11 11:51:05 2021 -0500
@@ -39,6 +39,12 @@
#include <sys/sockio.h>
#endif
+#ifdef __HAIKU__
+# ifndef SIOCGIFCONF
+# include <sys/sockio.h>
+# endif
+#endif
+
#include "debug.h"
#include "account.h"
#include "dnsquery.h"