pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/platform mk: Create per-platform PKG_HAVE_EVENTFD a...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/221c68c5b504
branches:  trunk
changeset: 769174:221c68c5b504
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Nov 09 11:05:07 2021 +0000

description:
mk: Create per-platform PKG_HAVE_EVENTFD and PKG_HAVE_TIMERFD variables.

diffstat:

 mk/platform/Linux.mk  |   5 ++++-
 mk/platform/NetBSD.mk |  12 +++++++++++-
 2 files changed, 15 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r 6fd69cb5055a -r 221c68c5b504 mk/platform/Linux.mk
--- a/mk/platform/Linux.mk      Tue Nov 09 10:25:13 2021 +0000
+++ b/mk/platform/Linux.mk      Tue Nov 09 11:05:07 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Linux.mk,v 1.84 2020/12/13 16:26:12 nia Exp $
+# $NetBSD: Linux.mk,v 1.85 2021/11/09 11:05:07 nia Exp $
 #
 # Variable definitions for the Linux operating system.
 
@@ -184,3 +184,6 @@
 .if defined(NOGCCERROR)
 MAKE_ENV+=     NOGCCERROR=true
 .endif
+
+PKG_HAVE_EVENTFD=      # defined
+PKG_HAVE_TIMERFD=      # defined
diff -r 6fd69cb5055a -r 221c68c5b504 mk/platform/NetBSD.mk
--- a/mk/platform/NetBSD.mk     Tue Nov 09 10:25:13 2021 +0000
+++ b/mk/platform/NetBSD.mk     Tue Nov 09 11:05:07 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.mk,v 1.67 2021/10/12 07:48:53 nia Exp $
+# $NetBSD: NetBSD.mk,v 1.68 2021/11/09 11:05:07 nia Exp $
 #
 # Variable definitions for the NetBSD operating system.
 
@@ -126,6 +126,16 @@
 PKG_HAVE_KQUEUE=       # defined
 .endif
 
+# check for eventfd(2) support, added in NetBSD-9.99.x
+.if exists(/usr/include/sys/eventfd.h)
+PKG_HAVE_EVENTFD=      # defined
+.endif
+
+# check for timerfd(2) support, added in NetBSD-9.99.x
+.if exists(/usr/include/sys/timerfd.h)
+PKG_HAVE_TIMERFD=      # defined
+.endif
+
 # Register support for FORTIFY (with GCC)
 .if !empty(OS_VERSION:M[2-6].*)
 # Disable on older versions, see:



Home | Main Index | Thread Index | Old Index