patch-netwerk_sctp_src_netinet_sctp_pcb_c 763 B

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