summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2002-09-12 15:04:22 +0000
committerwtc%netscape.com <devnull@localhost>2002-09-12 15:04:22 +0000
commitae9928b0bf5487e36a86fb965d5158cfb7133db4 (patch)
treebe4a1e77c7c7eda165785587a8aaa2af394d7705
parentaac6ccf79be509401a1f4eabbaaa4fe32f34f4b0 (diff)
downloadnspr-hg-ae9928b0bf5487e36a86fb965d5158cfb7133db4.tar.gz
Bug 167375: configuration changes needed for building on BSD/OS 5.0.
The patch is contributed by lidl@pix.net. Modified files: configure configure.in _bsdi.h
-rwxr-xr-xconfigure4
-rw-r--r--configure.in4
-rw-r--r--pr/include/md/_bsdi.h10
3 files changed, 14 insertions, 4 deletions
diff --git a/configure b/configure
index 62b85552..e084d73e 100755
--- a/configure
+++ b/configure
@@ -3174,7 +3174,7 @@ EOF
PR_MD_ASFILES=os_BSD_OS_386_2.s
;;
- bsdi4.*)
+ bsdi4.* | bsdi5.*)
cat >> confdefs.h <<\EOF
#define _PR_SELECT_CONST_TIMEVAL 1
EOF
@@ -3200,7 +3200,7 @@ EOF
DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)'
STRIP="$STRIP -d"
case "$target_os" in
- bsdi4.2*)
+ bsdi4.2* | bsdi4.3* | bsdi5.*)
cat >> confdefs.h <<\EOF
#define _PR_HAVE_GETPROTO_R 1
EOF
diff --git a/configure.in b/configure.in
index ce2e1302..ce194550 100644
--- a/configure.in
+++ b/configure.in
@@ -813,7 +813,7 @@ case "$target" in
PR_MD_ASFILES=os_BSD_OS_386_2.s
;;
- bsdi4.*)
+ bsdi4.* | bsdi5.*)
AC_DEFINE(_PR_SELECT_CONST_TIMEVAL)
AC_DEFINE(_PR_BSDI_JMPBUF_IS_STRUCT)
AC_DEFINE(HAVE_DLL)
@@ -824,7 +824,7 @@ case "$target" in
DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)'
STRIP="$STRIP -d"
case "$target_os" in
- bsdi4.2*)
+ bsdi4.2* | bsdi4.3* | bsdi5.*)
AC_DEFINE(_PR_HAVE_GETPROTO_R)
AC_DEFINE(_PR_HAVE_GETPROTO_R_POINTER)
;;
diff --git a/pr/include/md/_bsdi.h b/pr/include/md/_bsdi.h
index c529649f..3ecddde4 100644
--- a/pr/include/md/_bsdi.h
+++ b/pr/include/md/_bsdi.h
@@ -39,6 +39,8 @@
* Internal configuration macros
*/
+#include <sys/param.h> /* for _BSDI_VERSION */
+
#define PR_LINKER_ARCH "bsdi"
#define _PR_SI_SYSNAME "BSDI"
#if defined(__i386__)
@@ -61,6 +63,14 @@
#define USE_SETJMP
+/* BSD/OS 4.3 and newer all have IPv6 support */
+#if _BSDI_VERSION >= 200105
+#define _PR_INET6
+#define _PR_HAVE_GETIPNODEBYNAME
+#define _PR_HAVE_GETIPNODEBYADDR
+#define _PR_INET6_PROBE
+#endif
+
#ifndef _PR_PTHREADS
#include <setjmp.h>