
In https://bugzilla.mozilla.org/show_bug.cgi?id=355999


only in patch2:
unchanged:
--- nsprpub/pr/include/md/_linux.cfg
+++ nsprpub/pr/include/md/_linux.cfg
@@ -51,7 +51,11 @@
 #define LINUX
 #endif
 
+#ifdef __FreeBSD_kernel__
+#define PR_AF_INET6 28  /* same as AF_INET6 */
+#else
 #define PR_AF_INET6 10  /* same as AF_INET6 */
+#endif
 
 #ifdef __powerpc64__
 
only in patch2:
unchanged:
--- nsprpub/pr/include/md/_linux.h
+++ nsprpub/pr/include/md/_linux.h
@@ -41,6 +41,15 @@
 #include "prthread.h"
 
 /*
+ * This file is used by not only Linux but also other glibc systems
+ * such as GNU/Hurd and GNU/k*BSD.
+ */
+
+#ifdef __FreeBSD_kernel__
+#define _PR_HAVE_SOCKADDR_LEN 
+#endif
+   
+/*
  * Internal configuration macros
  */
 
