pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/stund Fix build on NetBSD
details: https://anonhg.NetBSD.org/pkgsrc/rev/82ea66a7b6b9
branches: trunk
changeset: 372413:82ea66a7b6b9
user: jmcneill <jmcneill%pkgsrc.org@localhost>
date: Wed Dec 06 15:43:48 2017 +0000
description:
Fix build on NetBSD
diffstat:
net/stund/distinfo | 3 ++-
net/stund/patches/patch-stun.cxx | 19 +++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletions(-)
diffs (36 lines):
diff -r be3fb41fa29a -r 82ea66a7b6b9 net/stund/distinfo
--- a/net/stund/distinfo Wed Dec 06 12:54:44 2017 +0000
+++ b/net/stund/distinfo Wed Dec 06 15:43:48 2017 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1 2017/12/04 23:59:20 jmcneill Exp $
+$NetBSD: distinfo,v 1.2 2017/12/06 15:43:48 jmcneill Exp $
SHA1 (stund-0.97.tgz) = 49bc35790e4b3facbb31ebcc1f1f8277a999fb0c
RMD160 (stund-0.97.tgz) = 06672b39bb3fcac1c136a3496b875f05deafc647
SHA512 (stund-0.97.tgz) = 8f32d4fadf7264967a8cdabf410b9cd495e1f4dc6198d5efe07559996697db088a8a6b1b5fd0814c1a04fe8c17c866256d6a59b719a153fd23c26939d3c6bc1a
Size (stund-0.97.tgz) = 169558 bytes
+SHA1 (patch-stun.cxx) = 11fd1b3dc949cee1cd7c9192fb48b1b1020dcd6b
SHA1 (patch-udp.h) = 0bc0c4254596fc9018f5bdc4d5dd96d6000bcbb6
diff -r be3fb41fa29a -r 82ea66a7b6b9 net/stund/patches/patch-stun.cxx
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/stund/patches/patch-stun.cxx Wed Dec 06 15:43:48 2017 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-stun.cxx,v 1.1 2017/12/06 15:43:48 jmcneill Exp $
+
+--- stun.cxx.orig 2012-01-26 11:02:46.000000000 +0000
++++ stun.cxx
+@@ -673,12 +673,10 @@ stunRand()
+ asm("rdtsc" : "=A" (tick));
+ #elif defined (__SUNPRO_CC) || defined( __sparc__ )
+ tick = gethrtime();
+-#elif defined(__MACH__) || defined(__linux)
+- int fd=open("/dev/random",O_RDONLY);
++#else
++ int fd=open("/dev/urandom",O_RDONLY);
+ read(fd,&tick,sizeof(tick));
+ closesocket(fd);
+-#else
+-# error Need some way to seed the random number generator
+ #endif
+ int seed = int(tick);
+ #ifdef WIN32
Home |
Main Index |
Thread Index |
Old Index