summaryrefslogtreecommitdiff
path: root/audio/mpg123/patches/patch-av
diff options
context:
space:
mode:
Diffstat (limited to 'audio/mpg123/patches/patch-av')
-rw-r--r--audio/mpg123/patches/patch-av22
1 files changed, 19 insertions, 3 deletions
diff --git a/audio/mpg123/patches/patch-av b/audio/mpg123/patches/patch-av
index 5a92c4573cc..0d702f2631c 100644
--- a/audio/mpg123/patches/patch-av
+++ b/audio/mpg123/patches/patch-av
@@ -1,7 +1,7 @@
-$NetBSD: patch-av,v 1.1 2005/10/03 15:17:14 joerg Exp $
+$NetBSD: patch-av,v 1.2 2008/08/20 22:17:30 martin Exp $
---- xfermem.c.orig 2005-07-23 23:42:59.000000000 +0000
-+++ xfermem.c
+--- xfermem.c.orig 1999-05-27 20:41:10.000000000 +0200
++++ xfermem.c 2008-08-20 16:04:32.000000000 +0200
@@ -32,8 +32,6 @@
#include <sys/shm.h>
#endif
@@ -11,3 +11,19 @@ $NetBSD: patch-av,v 1.1 2005/10/03 15:17:14 joerg Exp $
#if defined (USE_MMAP) && defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
#define MAP_ANON MAP_ANONYMOUS
#endif
+@@ -180,6 +178,15 @@
+ if (FD_ISSET(fd, &selfds))
+ switch (read(fd, &cmd, 1)) {
+ case 0: /* EOF */
++ /*
++ * We should not check
++ * errno later on in
++ * this case, but we
++ * have to return an
++ * error code, so it
++ * will happen.
++ */
++ errno = 0;
+ return (-1);
+ case -1:
+ if (errno == EINTR)