summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2016-09-08 15:43:13 +0000
committerjperkin <jperkin@pkgsrc.org>2016-09-08 15:43:13 +0000
commit8b1986a91c36cf39faf4102afd10fb986e9a8b45 (patch)
treea51ad0c0e93e3dae3cd98e28690f50964200e90c /security
parent17228dc25bb7e79d7af0b9df05ed2da3b2100da6 (diff)
downloadpkgsrc-8b1986a91c36cf39faf4102afd10fb986e9a8b45.tar.gz
Fix build on SunOS when the default compilation environment is C99+.
Diffstat (limited to 'security')
-rw-r--r--security/openssl/distinfo3
-rw-r--r--security/openssl/patches/patch-crypto_rand_randfile.c17
2 files changed, 19 insertions, 1 deletions
diff --git a/security/openssl/distinfo b/security/openssl/distinfo
index 7c71aa7ca3b..976a4ae3b5a 100644
--- a/security/openssl/distinfo
+++ b/security/openssl/distinfo
@@ -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-apps_Makefile) = 60113291f2a25f5f1c1dba35e8173087bcd4cc30
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 --git a/security/openssl/patches/patch-crypto_rand_randfile.c b/security/openssl/patches/patch-crypto_rand_randfile.c
new file mode 100644
index 00000000000..6d480cf9254
--- /dev/null
+++ b/security/openssl/patches/patch-crypto_rand_randfile.c
@@ -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>