freebsd-ports/audio/rawrec/files/patch-record.c
Kirill Ponomarev f328b7e454 - Update to version 0.9.98
- Bug fixes

PR:		56460
Submitted by:	Simon Barner <barner@in.tum.de>
2003-09-04 21:38:39 +00:00

39 lines
1.4 KiB
C

--- record.c.orig Fri Nov 29 03:33:21 2002
+++ record.c Thu Sep 4 22:12:48 2003
@@ -185,6 +185,10 @@
PTHREAD_CREATE_JOINABLE)) ) {
err_die("BUG: pthread_attr_setdetachstate failed: %s\n", strerror(rtn));
}
+
+/* This is ugly, but FreeBSD defines _POSIX_THREAD_PRIORITY_SCHEDULING
+ but it does not support PTHREAD_SCOPE_SYSTEM
+
#if defined (_POSIX_THREAD_PRIORITY_SCHEDULING) \
&& _POSIX_THREAD_PRIORITY_SCHEDULING != -1 \
&& _POSIX_THREAD_PRIORITY_SCHEDULING != 0
@@ -204,12 +208,17 @@
err_die("BUG: pthread_attr_setscope failed: %s\n", strerror(rtn));
}
#endif
+*/
if ( (rtn = pthread_attr_init(&move_fd_attr)) )
err_die("BUG: pthread_attr_init failed: %s\n", strerror(rtn));
if ( (rtn = pthread_attr_setdetachstate(&move_fd_attr,
PTHREAD_CREATE_JOINABLE)) ) {
err_die("BUG: pthread_attr_setdetachstate failed: %s\n", strerror(rtn));
}
+
+/* This is ugly, but FreeBSD defines _POSIX_THREAD_PRIORITY_SCHEDULING
+ but it does not support PTHREAD_SCOPE_SYSTEM
+
#if defined (_POSIX_THREAD_PRIORITY_SCHEDULING) \
&& _POSIX_THREAD_PRIORITY_SCHEDULING != -1 \
&& _POSIX_THREAD_PRIORITY_SCHEDULING != 0
@@ -227,6 +236,7 @@
err_die("BUG: pthread_attr_setscope failed: %s\n", strerror(rtn));
}
#endif
+*/
/* Getting ugly. Here we install a handler (which sets a global
flag which the threads can poll in order to do graceful