pkgsrc-WIP-changes archive

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

libcanlock: Define _POSIX_C_SOURCE to reserve namespace



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By:	micha
Date:		Mon Aug 27 12:02:51 2018 +0200
Changeset:	b91818094945355c2b4fc166acefdb6a13d6d3e8

Modified Files:
	libcanlock/Makefile
	libcanlock/distinfo
Added Files:
	libcanlock/patches/patch-src_secret.c

Log Message:
libcanlock: Define _POSIX_C_SOURCE to reserve namespace

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b91818094945355c2b4fc166acefdb6a13d6d3e8

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

diffstat:
 libcanlock/Makefile                   |  3 +++
 libcanlock/distinfo                   |  1 +
 libcanlock/patches/patch-src_secret.c | 16 ++++++++++++++++
 3 files changed, 20 insertions(+)

diffs:
diff --git a/libcanlock/Makefile b/libcanlock/Makefile
index 6d1b336684..840e68a463 100644
--- a/libcanlock/Makefile
+++ b/libcanlock/Makefile
@@ -17,6 +17,9 @@ USE_LIBTOOL=	yes
 
 TEST_TARGET=	test
 
+# Recent NetBSD has a namespace clash its implementation defined extensions
+CFLAGS+=	-D_POSIX_C_SOURCE=200112L
+
 CONFIGURE_ARGS+=	--disable-legacy-api
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/libcanlock/distinfo b/libcanlock/distinfo
index 21dfefb297..f9aaa80f89 100644
--- a/libcanlock/distinfo
+++ b/libcanlock/distinfo
@@ -4,3 +4,4 @@ SHA1 (libcanlock-3.0.2.tar.bz2) = b05cbef7f90b7d7de7edb06ebc017c3f29026e9b
 RMD160 (libcanlock-3.0.2.tar.bz2) = b388add68a74bc82a1179ebeb1ccbdf8f9dc61b4
 SHA512 (libcanlock-3.0.2.tar.bz2) = 319feddfa726b767dedcf5709b51d5dd787c32041b200243f8eb09918ab1f85b22102ddc6cc3148ac2af797a294ed6a52819486596b77093e0a92231b72644e9
 Size (libcanlock-3.0.2.tar.bz2) = 317428 bytes
+SHA1 (patch-src_secret.c) = c5319326b518bd9de4a4763acdbf3d848a3e238c
diff --git a/libcanlock/patches/patch-src_secret.c b/libcanlock/patches/patch-src_secret.c
new file mode 100644
index 0000000000..3f2841908f
--- /dev/null
+++ b/libcanlock/patches/patch-src_secret.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Do not mask implementation defined extensions from the namespace.
+
+--- src/secret.c.orig	2018-01-15 11:37:46.000000000 +0000
++++ src/secret.c
+@@ -29,6 +29,9 @@
+  * of the copyright holder.
+  */
+ 
++/* Make implementation defined extensions visible here */
++#undef _POSIX_C_SOURCE
++
+ /* C11 (if available) */
+ #define __STDC_WANT_LIB_EXT1__ 1  /*!< Request for Annex K */
+ 


Home | Main Index | Thread Index | Old Index