1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

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>
This commit is contained in:
Daniel Eischen 2004-04-11 05:27:05 +00:00
parent 19e8fbb2e8
commit fe26fe8138
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=106714

26
audio/xmcd/files/patch-ah Normal file
View File

@ -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 */