diff options
author | dholland <dholland> | 2012-06-28 04:50:12 +0000 |
---|---|---|
committer | dholland <dholland> | 2012-06-28 04:50:12 +0000 |
commit | 0b3f06a7bf9bf9c228b3624c4e33b6f7a916434d (patch) | |
tree | d7bc71e5ff90e445219af1f8d41accf40a69e4cf /net/ortp/patches | |
parent | a21f80f1bfe5354df1d6f0e85ed934d555b0d272 (diff) | |
download | pkgsrc-0b3f06a7bf9bf9c228b3624c4e33b6f7a916434d.tar.gz |
Always use /dev/random to seed on NetBSD, instead of relying on a
configure test, which might arbitrarily fail if chrooted.
Diffstat (limited to 'net/ortp/patches')
-rw-r--r-- | net/ortp/patches/patch-src_stun.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/net/ortp/patches/patch-src_stun.c b/net/ortp/patches/patch-src_stun.c index b77be27b590..6c4fbac0ad6 100644 --- a/net/ortp/patches/patch-src_stun.c +++ b/net/ortp/patches/patch-src_stun.c @@ -1,6 +1,9 @@ -$NetBSD: patch-src_stun.c,v 1.2 2012/06/25 11:49:10 joerg Exp $ +$NetBSD: patch-src_stun.c,v 1.3 2012/06/28 04:50:12 dholland Exp $ -Fix build with gcc 4.6 +- Fix a wrong memset call. +- Always seed with /dev/random on NetBSD instead of relying on a +configure test. +- Fix build with gcc 4.6 --- src/stun.c.orig 2009-06-16 10:49:48.000000000 +0000 +++ src/stun.c @@ -13,6 +16,15 @@ Fix build with gcc 4.6 if (sizeof(StunMsgHdr) > bufLen) { +@@ -1185,7 +1185,7 @@ stunRand(void) + read(fd,&tick,sizeof(tick)); + closesocket(fd); + } +-#elif defined(__linux) || defined(HAVE_DEV_RANDOM) ++#elif defined(__linux) || defined(__NetBSD__) || defined(HAVE_DEV_RANDOM) + { + fd_set fdSet; + int maxFd=0; @@ -1984,7 +1984,6 @@ stunSendTest( Socket myFd, StunAddress4 bool_t changePort=FALSE; |