pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/openssl Fix build on SunOS when the default c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/443254249221
branches:  trunk
changeset: 352179:443254249221
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Sep 08 15:43:13 2016 +0000

description:
Fix build on SunOS when the default compilation environment is C99+.

diffstat:

 security/openssl/distinfo                             |   3 ++-
 security/openssl/patches/patch-crypto_rand_randfile.c |  17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 92723ac1db36 -r 443254249221 security/openssl/distinfo
--- a/security/openssl/distinfo Thu Sep 08 15:43:12 2016 +0000
+++ b/security/openssl/distinfo Thu Sep 08 15:43:13 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.122 2016/05/03 14:51:16 jperkin Exp $
+$NetBSD: distinfo,v 1.123 2016/09/08 15:43:13 jperkin Exp $
 
 SHA1 (openssl-1.0.2h.tar.gz) = 577585f5f5d299c44dd3c993d3c0ac7a219e4949
 RMD160 (openssl-1.0.2h.tar.gz) = b7ab97d34582b7467929bbcd2bb8fbc4d19ac05e
@@ -11,5 +11,6 @@
 SHA1 (patch-config) = 345cadece3bdf0ef0a273a6c9ba6d0cbb1026a31
 SHA1 (patch-crypto_bn_bn__prime.pl) = a516f3709a862d85e659d466e895419b1e0a94c8
 SHA1 (patch-crypto_des_Makefile) = 7a23f9883ff6c93ec0e5d08e1332cc95de8cdba2
+SHA1 (patch-crypto_rand_randfile.c) = 48b703df088cbb703109c73b051010bc9907bb58
 SHA1 (patch-engines_ccgost_Makefile) = 5ff1e2705f6cb46075d5e005af9e804bb81d65e5
 SHA1 (patch-tools_Makefile) = 67f0b9b501969382fd89b678c277d32bf5d294bc
diff -r 92723ac1db36 -r 443254249221 security/openssl/patches/patch-crypto_rand_randfile.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/openssl/patches/patch-crypto_rand_randfile.c     Thu Sep 08 15:43:13 2016 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-crypto_rand_randfile.c,v 1.1 2016/09/08 15:43:13 jperkin Exp $
+
+Support SunOS in C99 mode.
+
+--- crypto/rand/randfile.c.orig        2016-05-03 13:44:42.000000000 +0000
++++ crypto/rand/randfile.c
+@@ -58,8 +58,10 @@
+ 
+ /* We need to define this to get macros like S_IFBLK and S_IFCHR */
+ #if !defined(OPENSSL_SYS_VXWORKS)
++#if !(defined(__sun) && (__STDC_VERSION__ - 0 >= 199901L))
+ # define _XOPEN_SOURCE 500
+ #endif
++#endif
+ 
+ #include <errno.h>
+ #include <stdio.h>



Home | Main Index | Thread Index | Old Index