pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kcoreaddons: add hack for posix_fallocate() in NetBSD>=7
Module Name: pkgsrc-wip
Committed By: Mark Davies <mark%ecs.vuw.ac.nz@localhost>
Pushed By: markd
Date: Tue May 3 19:33:11 2016 +1200
Changeset: 9a805e79633585f9d5f6ce9c20739bd19895c29e
Added Files:
kcoreaddons/hacks.mk
Log Message:
kcoreaddons: add hack for posix_fallocate() in NetBSD>=7
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9a805e79633585f9d5f6ce9c20739bd19895c29e
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
kcoreaddons/hacks.mk | 9 +++++++++
1 file changed, 9 insertions(+)
diffs:
diff --git a/kcoreaddons/hacks.mk b/kcoreaddons/hacks.mk
new file mode 100644
index 0000000..d464230
--- /dev/null
+++ b/kcoreaddons/hacks.mk
@@ -0,0 +1,9 @@
+# $NetBSD$
+#
+.include "../../mk/bsd.fast.prefs.mk"
+
+# NetBSD >= 7 has posix_fallocate() but doesnt define _POSIX_ADVISORY_INFO
+
+.if ${OPSYS} == "NetBSD" && empty(MACHINE_PLATFORM:MNetBSD-[0-6].*-*)
+CXXFLAGS+= -DKSDC_POSIX_FALLOCATE_SUPPORTED=1
+.endif
Home |
Main Index |
Thread Index |
Old Index