pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/platform



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue Nov  9 11:05:07 UTC 2021

Modified Files:
        pkgsrc/mk/platform: Linux.mk NetBSD.mk

Log Message:
mk: Create per-platform PKG_HAVE_EVENTFD and PKG_HAVE_TIMERFD variables.


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.85 pkgsrc/mk/platform/Linux.mk
cvs rdiff -u -r1.67 -r1.68 pkgsrc/mk/platform/NetBSD.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/platform/Linux.mk
diff -u pkgsrc/mk/platform/Linux.mk:1.84 pkgsrc/mk/platform/Linux.mk:1.85
--- pkgsrc/mk/platform/Linux.mk:1.84    Sun Dec 13 16:26:12 2020
+++ pkgsrc/mk/platform/Linux.mk Tue Nov  9 11:05:07 2021
@@ -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 @@ GLIBC_VERSION=              ${_GLIBC_VERSION_CMD:sh}
 .if defined(NOGCCERROR)
 MAKE_ENV+=     NOGCCERROR=true
 .endif
+
+PKG_HAVE_EVENTFD=      # defined
+PKG_HAVE_TIMERFD=      # defined

Index: pkgsrc/mk/platform/NetBSD.mk
diff -u pkgsrc/mk/platform/NetBSD.mk:1.67 pkgsrc/mk/platform/NetBSD.mk:1.68
--- pkgsrc/mk/platform/NetBSD.mk:1.67   Tue Oct 12 07:48:53 2021
+++ pkgsrc/mk/platform/NetBSD.mk        Tue Nov  9 11:05:07 2021
@@ -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 @@ FFLAGS+=   -mieee
 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