pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk For macOS, getline(3) arrived sometime after 10.6 -...
details: https://anonhg.NetBSD.org/pkgsrc/rev/53d996d0b050
branches: trunk
changeset: 371794:53d996d0b050
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Fri Jan 14 14:46:50 2022 +0000
description:
For macOS, getline(3) arrived sometime after 10.6 -- guessing 10.7 like
strnlen(3). Make libnbcompat's implementation available to packages via
USE_FEATURES=getline.
diffstat:
mk/features/features.mk | 4 ++--
mk/platform/Darwin.mk | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r 06fb8f6f1ed5 -r 53d996d0b050 mk/features/features.mk
--- a/mk/features/features.mk Fri Jan 14 14:12:03 2022 +0000
+++ b/mk/features/features.mk Fri Jan 14 14:46:50 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: features.mk,v 1.9 2019/07/08 22:09:22 sevan Exp $
+# $NetBSD: features.mk,v 1.10 2022/01/14 14:46:50 schmonz Exp $
#
# This file is included by bsd.pkg.mk.
#
@@ -36,7 +36,7 @@
# libnbcompat provides many of the current features.
#
_FEATURE_USE_NBCOMPAT?= no
-. for f in asprintf cdefs err fts_close fts_open fts_read fts_set getopt_long glob nbcompat regcomp setenv snprintf strnlen utimes vsnprintf warn
+. for f in asprintf cdefs err fts_close fts_open fts_read fts_set getline getopt_long glob nbcompat regcomp setenv snprintf strnlen utimes vsnprintf warn
. if !empty(MISSING_FEATURES:M${f})
_FEATURE_USE_NBCOMPAT= yes
. endif
diff -r 06fb8f6f1ed5 -r 53d996d0b050 mk/platform/Darwin.mk
--- a/mk/platform/Darwin.mk Fri Jan 14 14:12:03 2022 +0000
+++ b/mk/platform/Darwin.mk Fri Jan 14 14:46:50 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Darwin.mk,v 1.111 2021/12/02 09:44:03 jperkin Exp $
+# $NetBSD: Darwin.mk,v 1.112 2022/01/14 14:46:51 schmonz Exp $
#
# Variable definitions for the Darwin operating system.
@@ -253,7 +253,7 @@
CONFIGURE_ENV+= gl_cv_func_getcwd_abort_bug=no
.endif
-# strnlen(3) is available from Lion onwards
+# strnlen(3) and getline(3) are available from Lion onwards
.if ${OPSYS_VERSION} < 100700
-_OPSYS_MISSING_FEATURES+= strnlen
+_OPSYS_MISSING_FEATURES+= strnlen getline
.endif
Home |
Main Index |
Thread Index |
Old Index