diff options
author | rillig <rillig@pkgsrc.org> | 2005-03-16 15:32:12 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-03-16 15:32:12 +0000 |
commit | 250381c5c81f68ee3efe74fcf2043fbe2b1d4972 (patch) | |
tree | e2bdc9b0bbb955fb45df27ff216039ca68be0364 /ham/linpsk/patches/patch-ag | |
parent | 4573cb2dc10915ed70557a17253af5de2f76e3e2 (diff) | |
download | pkgsrc-250381c5c81f68ee3efe74fcf2043fbe2b1d4972.tar.gz |
Added some patches for building on NetBSD-1.6.2 with gcc-2.95.3. Approved
by wiz.
Diffstat (limited to 'ham/linpsk/patches/patch-ag')
-rw-r--r-- | ham/linpsk/patches/patch-ag | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ham/linpsk/patches/patch-ag b/ham/linpsk/patches/patch-ag new file mode 100644 index 00000000000..2db2645dbc2 --- /dev/null +++ b/ham/linpsk/patches/patch-ag @@ -0,0 +1,47 @@ +$NetBSD: patch-ag,v 1.1 2005/03/16 15:32:12 rillig Exp $ + +NetBSD-1.6.2 does not have struct sched_param. + +--- src/portaudio/pa_unix.c.orig Sun Jul 11 18:03:57 2004 ++++ src/portaudio/pa_unix.c Wed Mar 16 02:58:17 2005 +@@ -87,6 +87,8 @@ O- what if input and output of a device + */
+
+
++#include <pkgsrc_fixes.h> ++ + #include "pa_unix.h"
+
+ typedef void *(*pthread_function_t)(void *);
+@@ -411,6 +413,7 @@ static int PaHost_CanaryProc( PaHostSoun +
+ static PaError PaHost_WatchDogProc( PaHostSoundControl *pahsc )
+ {
++#ifdef HAVE_STRUCT_SCHED_PARAM + struct sched_param schp = { 0 };
+ int maxPri;
+
+@@ -495,6 +498,7 @@ cleanup:
+ #ifdef GNUSTEP
+ GSUnregisterCurrentThread(); /* SB20010904 */
+ #endif
++#endif + return 0;
+ }
+
+@@ -574,6 +578,7 @@ static PaError PaHost_BoostPriority( int + {
+ PaHostSoundControl *pahsc;
+ PaError result = paNoError;
++#ifdef HAVE_STRUCT_SCHED_PARAM + struct sched_param schp = { 0 };
+
+ pahsc = (PaHostSoundControl *) past->past_DeviceData;
+@@ -597,6 +602,7 @@ static PaError PaHost_BoostPriority( int + /* We are running at high priority so we should have a watchdog in case audio goes wild. */
+ result = PaHost_StartWatchDog( pahsc );
+ }
++#endif +
+ return result;
+ }
|