aboutsummaryrefslogtreecommitdiffstats
path: root/community/firefox-esr/fix-netwerk.patch
blob: a31b286229e4011323879542ec19fbfbd6da0cd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- ./netwerk.orig/sctp/src/netinet/sctp_os_userspace.h
+++ ./netwerk/sctp/src/netinet/sctp_os_userspace.h
@@ -400,11 +400,8 @@
 };
 
 #else /* !defined(Userspace_os_Windows) */
-#include <sys/cdefs.h> /* needed? added from old __FreeBSD__ */
 #include <sys/socket.h>
-#if defined(__Userspace_os_DragonFly) || defined(__Userspace_os_FreeBSD) || defined(__Userspace_os_Linux) || defined(__Userspace_os_NetBSD) || defined(__Userspace_os_OpenBSD) || defined(ANDROID)
 #include <pthread.h>
-#endif
 typedef pthread_mutex_t userland_mutex_t;
 typedef pthread_cond_t userland_cond_t;
 typedef pthread_t userland_thread_t;
--- ./netwerk.orig/sctp/src/netinet/sctp_pcb.c
+++ ./netwerk/sctp/src/netinet/sctp_pcb.c
@@ -30,6 +30,9 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#define _BSD_SOURCE /* for IPPORT_RESERVED */
+#include <netdb.h>
+
 #ifdef __FreeBSD__
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.c 258765 2013-11-30 12:51:19Z tuexen $");
--- ./netwerk.orig/sctp/src/user_queue.h
+++ ./netwerk/sctp/src/user_queue.h
@@ -31,7 +31,7 @@
 #ifndef _USER_QUEUE_H_
 #define	_USER_QUEUE_H_
 
-#if !defined (__Userspace_os_Windows)
+#if defined(__Userspace_os_FreeBSD)
 #include <sys/cdefs.h>
 #endif
 /*