pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/blosc blosc: Set _POSIX_C_SOURCE for posix_memalign



details:   https://anonhg.NetBSD.org/pkgsrc/rev/80e9581938e3
branches:  trunk
changeset: 441056:80e9581938e3
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Oct 25 04:33:27 2020 +0000

description:
blosc: Set _POSIX_C_SOURCE for posix_memalign

diffstat:

 devel/blosc/Makefile |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 9bce8adcabac -r 80e9581938e3 devel/blosc/Makefile
--- a/devel/blosc/Makefile      Sun Oct 25 03:56:00 2020 +0000
+++ b/devel/blosc/Makefile      Sun Oct 25 04:33:27 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2020/10/21 19:44:56 nia Exp $
+# $NetBSD: Makefile,v 1.15 2020/10/25 04:33:27 nia Exp $
 
 DISTNAME=      blosc-1.20.1
 CATEGORIES=    devel
@@ -23,6 +23,9 @@
 CMAKE_ARGS+=   -DPREFER_EXTERNAL_ZLIB=ON
 CMAKE_ARGS+=   -DPREFER_EXTERNAL_ZSTD=ON
 
+# Needed to use posix_memalign, see tests/test_common.h
+CFLAGS+=       -D_POSIX_C_SOURCE=200112
+
 CFLAGS.SunOS+= -D__EXTENSIONS__
 
 PKGCONFIG_OVERRIDE+=   blosc.pc.in



Home | Main Index | Thread Index | Old Index