pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/digest/files digest: Remove _POSIX_C_SOURCE. ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eb86c795f354
branches:  trunk
changeset: 459373:eb86c795f354
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Oct 05 15:38:48 2021 +0000

description:
digest: Remove _POSIX_C_SOURCE. PR pkg/56439

diffstat:

 pkgtools/digest/files/blake2s.c |  8 +++-----
 pkgtools/digest/files/configure |  2 +-
 2 files changed, 4 insertions(+), 6 deletions(-)

diffs (51 lines):

diff -r ea5f65a2503f -r eb86c795f354 pkgtools/digest/files/blake2s.c
--- a/pkgtools/digest/files/blake2s.c   Tue Oct 05 12:59:49 2021 +0000
+++ b/pkgtools/digest/files/blake2s.c   Tue Oct 05 15:38:48 2021 +0000
@@ -24,8 +24,6 @@
  * SUCH DAMAGE.
  */
 
-#define        _POSIX_C_SOURCE 200809L
-
 #include <assert.h>
 #include <stdint.h>
 #include <string.h>
@@ -34,7 +32,7 @@
 
 void *(*volatile blake2s_explicit_memset_impl)(void *, int, size_t) = &memset;
 static void *
-explicit_memset(void *buf, int c, size_t n)
+blake2s_explicit_memset(void *buf, int c, size_t n)
 {
 
        return (*blake2s_explicit_memset_impl)(buf, c, n);
@@ -158,7 +156,7 @@
        h[6] ^= v6 ^ v14;
        h[7] ^= v7 ^ v15;
 
-       (void)explicit_memset(m, 0, sizeof m);
+       (void)blake2s_explicit_memset(m, 0, sizeof m);
 }
 
 void
@@ -270,7 +268,7 @@
        }
 
        /* Erase the state.  */
-       (void)explicit_memset(B, 0, sizeof B);
+       (void)blake2s_explicit_memset(B, 0, sizeof B);
 }
 
 void
diff -r ea5f65a2503f -r eb86c795f354 pkgtools/digest/files/configure
--- a/pkgtools/digest/files/configure   Tue Oct 05 12:59:49 2021 +0000
+++ b/pkgtools/digest/files/configure   Tue Oct 05 15:38:48 2021 +0000
@@ -580,7 +580,7 @@
 # Identity of this package.
 PACKAGE_NAME='nbsd-digest'
 PACKAGE_TARNAME='nbsd-digest'
-PACKAGE_VERSION='20210929'
+PACKAGE_VERSION='20211005'
 PACKAGE_STRING='nbsd-digest 20190127'
 PACKAGE_BUGREPORT='agc%netbsd.org@localhost'
 PACKAGE_URL=''



Home | Main Index | Thread Index | Old Index