mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 00:30:06 +02:00
44 lines
939 B
Plaintext
44 lines
939 B
Plaintext
From 985fb364d36a7d35a73c7c29b5e4da6c0009957e Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= <zmizsei@extrowerk.com>
|
|
Date: Sun, 26 Aug 2018 10:24:31 +0200
|
|
Subject: SIOCGIFCONF on Haiku resides in sockio.h
|
|
|
|
|
|
diff --git a/libpurple/network.c b/libpurple/network.c
|
|
index c43e3c7..f5dcc02 100644
|
|
--- a/libpurple/network.c
|
|
+++ b/libpurple/network.c
|
|
@@ -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).
|
|
diff --git a/libpurple/stun.c b/libpurple/stun.c
|
|
index 96bacda..c6eaaf4 100644
|
|
--- a/libpurple/stun.c
|
|
+++ b/libpurple/stun.c
|
|
@@ -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"
|
|
--
|
|
2.16.4
|
|
|