diff options
author | jmcneill <jmcneill@pkgsrc.org> | 2017-12-06 15:43:48 +0000 |
---|---|---|
committer | jmcneill <jmcneill@pkgsrc.org> | 2017-12-06 15:43:48 +0000 |
commit | c69715ca17d500bae86580648147757b42f79daf (patch) | |
tree | fb3810bbcbf06d5861ddc625a0a6ebbcb2fc9e78 /net/stund | |
parent | 5fb8a58f2aeab1929ecdcf66ec67ff67bd1b6657 (diff) | |
download | pkgsrc-c69715ca17d500bae86580648147757b42f79daf.tar.gz |
Fix build on NetBSD
Diffstat (limited to 'net/stund')
-rw-r--r-- | net/stund/distinfo | 3 | ||||
-rw-r--r-- | net/stund/patches/patch-stun.cxx | 19 |
2 files changed, 21 insertions, 1 deletions
diff --git a/net/stund/distinfo b/net/stund/distinfo index 4bfbb4dfe4d..4d2371a8346 100644 --- a/net/stund/distinfo +++ b/net/stund/distinfo @@ -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 --git a/net/stund/patches/patch-stun.cxx b/net/stund/patches/patch-stun.cxx new file mode 100644 index 00000000000..bf84634b11c --- /dev/null +++ b/net/stund/patches/patch-stun.cxx @@ -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 |