diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-28 14:12:36 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-28 14:12:36 +0000 |
commit | 6df3e23245b2c3793f24e4c42dd330d59419494c (patch) | |
tree | e86901dd11e5a970cf6211165d2b26dbe637e186 /audio/xmcd/files/patch-cdda_d__pthr.c | |
parent | lang/squeak: Claimed fix for PowerPC (diff) |
Rename audio/ patch-xy patches to reflect the files they modify.
Diffstat (limited to 'audio/xmcd/files/patch-cdda_d__pthr.c')
-rw-r--r-- | audio/xmcd/files/patch-cdda_d__pthr.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/audio/xmcd/files/patch-cdda_d__pthr.c b/audio/xmcd/files/patch-cdda_d__pthr.c new file mode 100644 index 000000000000..f58eb6bfb074 --- /dev/null +++ b/audio/xmcd/files/patch-cdda_d__pthr.c @@ -0,0 +1,26 @@ +--- cdda_d/pthr.c.orig Mon Apr 5 17:41:11 2004 ++++ cdda_d/pthr.c Sun Apr 11 01:15:11 2004 +@@ -35,6 +35,7 @@ + + #ifdef CDDA_PTHREADS + ++#include <sys/param.h> + #include "cdda_d/pthr.h" + + /* +@@ -889,6 +890,7 @@ + pthr_sem[DATA].v = 0; + + #ifndef __VMS /* VMS has no real fork, so this does not apply */ ++#if __FreeBSD_version >= 502100 + /* Register fork handler */ + if ((ret = pthread_atfork(NULL, NULL, cdda_pthr_atfork)) != 0) { + (void) sprintf(errbuf, +@@ -899,6 +901,7 @@ + cd->i->state = CDSTAT_COMPLETED; + return FALSE; + } ++#endif + #endif + + /* Ignore SIGPIPE */ |