From 2286c1ecae6482bdae394b3ca2df5c98baaa8ff8 Mon Sep 17 00:00:00 2001 From: Steve Price Date: Mon, 20 Sep 1999 01:07:26 +0000 Subject: Don't define time(3) as returning a long so that this builds on FreeBSD/Alpha. --- audio/radio/files/patch-ab | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'audio') diff --git a/audio/radio/files/patch-ab b/audio/radio/files/patch-ab index fbfb77ce67d4..0545c90218ea 100644 --- a/audio/radio/files/patch-ab +++ b/audio/radio/files/patch-ab @@ -1,5 +1,17 @@ -*** broadcast.c.orig Mon May 17 01:46:22 1993 ---- broadcast.c Sat Jun 19 02:36:48 1999 +*** broadcast.c.orig Mon May 17 03:46:22 1993 +--- broadcast.c Sat Sep 18 15:07:04 1999 +*************** +*** 68,74 **** +--- 68,76 ---- + #include + #include + ++ #ifndef __FreeBSD__ + extern long time(); ++ #endif + + #ifdef SUNHACKS + #include /* For SIOCGIF* */ *************** *** 490,496 **** for (i = 0; i < nbcaddr; i++) { @@ -9,7 +21,7 @@ HEADERSIZE+n) { perror("sendto"); } ---- 490,496 ---- +--- 492,498 ---- for (i = 0; i < nbcaddr; i++) { /* Send data packets to all bcast ports */ if (sendto(s, real_buf, HEADERSIZE+n, 0, @@ -26,7 +38,7 @@ if (n < 0) { perror("recvfrom"); exit(1); ---- 522,528 ---- +--- 524,530 ---- if (select(ctls+1, &inputav, 0, 0, &zerotime) == 1) { ctlsinsize = sizeof(ctlsin); n = recvfrom(ctls, buf, BUFFERSIZE, 0, -- cgit v1.2.3