diff options
author | wiz <wiz@pkgsrc.org> | 2004-03-20 15:16:10 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2004-03-20 15:16:10 +0000 |
commit | 39e2bd036165d048eced8548a26ce949234e33f5 (patch) | |
tree | 7e760d2e072aae9848257afbdd2f414655f7caa3 /games/freesci/patches/patch-af | |
parent | 703441c3444789a1f1fa59618346327cbbff380e (diff) | |
download | pkgsrc-39e2bd036165d048eced8548a26ce949234e33f5.tar.gz |
Make build on current, convert to buildlink3, and add some working
MASTER_SITES.
Diffstat (limited to 'games/freesci/patches/patch-af')
-rw-r--r-- | games/freesci/patches/patch-af | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/games/freesci/patches/patch-af b/games/freesci/patches/patch-af new file mode 100644 index 00000000000..2208295c712 --- /dev/null +++ b/games/freesci/patches/patch-af @@ -0,0 +1,29 @@ +$NetBSD: patch-af,v 1.1 2004/03/20 15:16:10 wiz Exp $ + +--- src/sound/pcmout_oss.c.orig 2003-01-17 06:56:47.000000000 +0100 ++++ src/sound/pcmout_oss.c +@@ -70,7 +70,7 @@ static int pcmout_oss_open(gint16 *b, gu + return -1; + } + +- if (ioctl (oss_fd, SNDCTL_DSP_RESET)) { ++ if (ioctl (oss_fd, SNDCTL_DSP_RESET, &i)) { + fprintf(stderr, "[PCM-OSS] Failed to reset device\n"); + return -1; + } +@@ -115,13 +115,13 @@ static int pcmout_oss_open(gint16 *b, gu + } + + static int pcmout_oss_close() { +- int err; ++ int err, i; + + run = 0; + + pthread_join(thread, NULL); + +- ioctl (oss_fd, SNDCTL_DSP_SYNC); ++ ioctl (oss_fd, SNDCTL_DSP_SYNC, &i); + close (oss_fd); + + return 0; |