summaryrefslogtreecommitdiff
path: root/mbone/sdr
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>1999-01-15 23:56:47 +0000
committerhubertf <hubertf@pkgsrc.org>1999-01-15 23:56:47 +0000
commit2c7527a8cca252f3f5d68ea6dc76d3a583737f2b (patch)
treea726e59b789cb8c170cef65cc0321dc6ba9013eb /mbone/sdr
parent5af78008dd3939539fffdea0bb6a1af84c21e6d0 (diff)
downloadpkgsrc-2c7527a8cca252f3f5d68ea6dc76d3a583737f2b.tar.gz
Fix for compiling on 1.3.2/sparc - random() and gethost*() are
supplied by the OS.
Diffstat (limited to 'mbone/sdr')
-rw-r--r--mbone/sdr/patches/patch-ai14
-rw-r--r--mbone/sdr/patches/patch-aj13
2 files changed, 23 insertions, 4 deletions
diff --git a/mbone/sdr/patches/patch-ai b/mbone/sdr/patches/patch-ai
index bea0941f1a1..a040560ed54 100644
--- a/mbone/sdr/patches/patch-ai
+++ b/mbone/sdr/patches/patch-ai
@@ -1,13 +1,19 @@
-$NetBSD: patch-ai,v 1.1 1998/11/05 05:32:38 mycroft Exp $
+$NetBSD: patch-ai,v 1.2 1999/01/15 23:56:47 hubertf Exp $
---- src/random.c.orig Wed Aug 5 11:16:03 1998
-+++ src/random.c Thu Nov 5 00:21:35 1998
-@@ -48,7 +48,7 @@
+--- src/random.c.orig Wed Aug 5 17:16:03 1998
++++ src/random.c Sat Jan 16 00:22:13 1999
+@@ -47,11 +47,13 @@
+
static int randseed = 1;
++#ifndef __NetBSD__
void
-srandom(unsigned int seed)
+srandom(unsigned long seed)
{
randseed = seed;
}
++#endif
+
+ #if sparc && !__SUNPRO_C
+ #ifdef __svr4__
diff --git a/mbone/sdr/patches/patch-aj b/mbone/sdr/patches/patch-aj
new file mode 100644
index 00000000000..3ddfe883e5b
--- /dev/null
+++ b/mbone/sdr/patches/patch-aj
@@ -0,0 +1,13 @@
+$NetBSD: patch-aj,v 1.1 1999/01/15 23:56:47 hubertf Exp $
+
+--- src/sdr.h.BAK Sat Jan 16 00:29:54 1999
++++ src/sdr.h Sat Jan 16 00:28:52 1999
+@@ -190,7 +190,7 @@
+ void srand48(long seedval);
+ double drand48();
+
+-#if !defined(WIN32)&&!defined(SGI)&&!defined(AIX41)&&!defined(_HPUX_SOURCE) && !defined(SOLARIS) && !defined(FREEBSD)
++#if !defined(WIN32)&&!defined(SGI)&&!defined(AIX41)&&!defined(_HPUX_SOURCE) && !defined(SOLARIS) && !defined(FREEBSD) && !defined(__NetBSD__)
+ int gethostname(char * name, size_t namelen);
+ #endif
+