From 2c7527a8cca252f3f5d68ea6dc76d3a583737f2b Mon Sep 17 00:00:00 2001 From: hubertf Date: Fri, 15 Jan 1999 23:56:47 +0000 Subject: Fix for compiling on 1.3.2/sparc - random() and gethost*() are supplied by the OS. --- mbone/sdr/patches/patch-ai | 14 ++++++++++---- mbone/sdr/patches/patch-aj | 13 +++++++++++++ 2 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 mbone/sdr/patches/patch-aj (limited to 'mbone/sdr') 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 + -- cgit v1.2.3