diff options
author | deischen <deischen@FreeBSD.org> | 2004-04-11 13:27:05 +0800 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2004-04-11 13:27:05 +0800 |
commit | 756b8149c17e75bacf102710eac51db22f310d07 (patch) | |
tree | ee7b3b5da83da0aa7d16d1b86baa1191f38bedf1 /audio | |
parent | 9b54c99ffb7b8ff77d4a7377880ce679d879a384 (diff) | |
download | freebsd-ports-gnome-756b8149c17e75bacf102710eac51db22f310d07.tar.gz freebsd-ports-gnome-756b8149c17e75bacf102710eac51db22f310d07.tar.zst freebsd-ports-gnome-756b8149c17e75bacf102710eac51db22f310d07.zip |
Unbreak on -stable by commenting out a call to pthread_atfork().
-stable doesn't yet have pthread_atfork().
Reported by: Kent Stewart <kstewart at owt.com>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/xmcd/files/patch-ah | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/audio/xmcd/files/patch-ah b/audio/xmcd/files/patch-ah new file mode 100644 index 000000000000..f58eb6bfb074 --- /dev/null +++ b/audio/xmcd/files/patch-ah @@ -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 */ |