. Detect that recent versions of 9-CURRENT have sigignore(3) and configure

the build correctly for that.

  Fixes the build on those versions of 9-CURRENT

PR:			141105
Collaboration with:	fluffy@
This commit is contained in:
Greg Lewis 2010-02-05 05:22:31 +00:00
parent 454c7f3786
commit 90ed75b874
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=249267

View file

@ -2,7 +2,21 @@ $FreeBSD$
--- ../../j2se/make/common/Defs-bsd.gmk.orig Sun Jul 29 23:03:29 2007 --- ../../j2se/make/common/Defs-bsd.gmk.orig Sun Jul 29 23:03:29 2007
+++ ../../j2se/make/common/Defs-bsd.gmk Sun Jul 29 23:03:29 2007 +++ ../../j2se/make/common/Defs-bsd.gmk Sun Jul 29 23:03:29 2007
@@ -293,7 +293,7 @@ @@ -314,6 +314,13 @@
ifeq ($(OS_VENDOR),NetBSD)
override HAVE_SIGIGNORE = true
endif
+ifeq ($(OS_VENDOR),FreeBSD)
+OS_RELDATE := $(shell sysctl kern.osreldate | cut -d' ' -f2)
+HAS_SIGIGNORE := $(shell if [ $(OS_RELDATE) -ge 900003 ]; then echo "1"; fi)
+ifeq ($(HAS_SIGIGNORE),1)
+override HAVE_SIGIGNORE = true
+endif
+endif
ifeq ($(OS_VENDOR),Apple)
override HAVE_SIGIGNORE = true
endif
@@ -332,7 +339,7 @@
override LIBTHREAD = override LIBTHREAD =
override MOOT_PRIORITIES = true override MOOT_PRIORITIES = true
override NO_INTERRUPTIBLE_IO = false override NO_INTERRUPTIBLE_IO = false