--- mozilla-release.orig/netwerk/sctp/src/netinet/sctp_pcb.c	2013-09-11 01:15:20.000000000 +0200
+++ mozilla-release/netwerk/sctp/src/netinet/sctp_pcb.c	2013-10-23 16:28:38.000000000 +0200
@@ -30,6 +30,8 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#define _BSD_SOURCE /* for IPPORT_RESERVED */
+
 #ifdef __FreeBSD__
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD: head/sys/netinet/sctp_pcb.c 246687 2013-02-11 21:02:49Z tuexen $");
@@ -69,11 +71,10 @@ __FBSDID("$FreeBSD: head/sys/netinet/sct
 #endif
 #if defined(__Userspace__)
 #if !defined(__Userspace_os_Windows)
-#if defined(ANDROID)
+#include <netdb.h>
 #include <unistd.h>
+#if defined(ANDROID)
 #include <ifaddrs-android-ext.h>
-#else
-#include <sys/unistd.h>
 #endif
 #endif
 #include <user_socketvar.h>
