diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2002-11-24 09:17:44 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2002-11-24 09:17:44 +0000 |
commit | 98265829383dd7a182c92a1ac89e884387f399d6 (patch) | |
tree | 8ac01a47e0ba15772dafba757758034a1751b938 /mk | |
parent | cc8c59a2678957fff3a167157f90e5c6e28e3139 (diff) | |
download | pkgsrc-98265829383dd7a182c92a1ac89e884387f399d6.tar.gz |
introduce PKG_HAVE_KQUEUE variable - defined if OS supports kqueue(2)/kevent(2)
interface
Diffstat (limited to 'mk')
-rw-r--r-- | mk/defs.FreeBSD.mk | 6 | ||||
-rw-r--r-- | mk/defs.NetBSD.mk | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/mk/defs.FreeBSD.mk b/mk/defs.FreeBSD.mk index 71aa37adf70..6eaeed1ac76 100644 --- a/mk/defs.FreeBSD.mk +++ b/mk/defs.FreeBSD.mk @@ -1,4 +1,4 @@ -# $NetBSD: defs.FreeBSD.mk,v 1.2 2002/11/17 15:14:18 grant Exp $ +# $NetBSD: defs.FreeBSD.mk,v 1.3 2002/11/24 09:17:44 jdolecek Exp $ # # Variable definitions for the FreeBSD operating system. @@ -106,3 +106,7 @@ _STRIPFLAG_INSTALL?= -s # install(1) option to strip DEFAULT_SERIAL_DEVICE?= /dev/null SERIAL_DEVICES?= /dev/null +# check for kqueue(2) support +.if exists(/usr/include/sys/event.h) +PKG_HAVE_KQUEUE= # defined +.endif diff --git a/mk/defs.NetBSD.mk b/mk/defs.NetBSD.mk index 2e002fc4126..99b81ecf7c7 100644 --- a/mk/defs.NetBSD.mk +++ b/mk/defs.NetBSD.mk @@ -1,4 +1,4 @@ -# $NetBSD: defs.NetBSD.mk,v 1.31 2002/10/23 12:21:30 wiz Exp $ +# $NetBSD: defs.NetBSD.mk,v 1.32 2002/11/24 09:17:44 jdolecek Exp $ # # Variable definitions for the NetBSD operating system. @@ -135,3 +135,8 @@ CFLAGS+= -mieee FFLAGS+= -mieee . endif # MACHINE_PLATFORM .endfor # __tmp__ + +# check for kqueue(2) support, added in NetBSD-1.6J +.if exists(/usr/include/sys/event.h) +PKG_HAVE_KQUEUE= # defined +.endif |