--- configure.orig	Fri Sep  5 06:00:38 2003
+++ configure	Mon Dec  8 03:04:01 2003
@@ -19078,13 +19078,6 @@
 
 		fi
 	;;
-	*-*-darwin*)
-
-cat >>confdefs.h <<\_ACEOF
-#define SYMBOL_PREFIX "_"
-_ACEOF
-
-	;;
 	*-hpux-*)
 		ARCH_DEFINES="-DHPUX"
 	;;
--- libxmms/util.c.orig	Wed Jan 15 00:09:18 2003
+++ libxmms/util.c	Mon Dec  8 03:04:01 2003
@@ -15,6 +15,13 @@
 #include <sys/sysctl.h>
 #endif
 
+#if defined (__APPLE__)
+#include <mach/mach.h>
+#include <mach/thread_policy.h>
+#include <sys/param.h>
+#include <sys/sysctl.h>
+#endif
+
 #if TIME_WITH_SYS_TIME
 # include <sys/time.h>
 # include <time.h>
@@ -73,6 +80,28 @@
 
 gboolean xmms_check_realtime_priority(void)
 {
+#if defined (__APPLE__)
+	struct thread_time_constraint_policy ttcpolicy;
+	int bus_speed, mib [2] = { CTL_HW, HW_BUS_FREQ };
+	size_t len;
+
+	len = sizeof (bus_speed);
+	sysctl (mib, 2, &bus_speed, &len, NULL, 0);
+
+	/* Is it enough? */
+	ttcpolicy.period = bus_speed / 120;
+	ttcpolicy.computation = bus_speed / 1000;
+	ttcpolicy.constraint = bus_speed / 500;
+	ttcpolicy.preemptible = 1;
+
+	thread_policy_set (mach_thread_self (),
+			   THREAD_TIME_CONSTRAINT_POLICY,
+			   (int*)&ttcpolicy,
+			   THREAD_TIME_CONSTRAINT_POLICY_COUNT);
+
+	return TRUE;
+#endif
+
 #ifdef HAVE_SCHED_SETSCHEDULER
 #ifdef __FreeBSD__
 	/*
--- ltmain.sh.orig	Wed Aug 13 21:59:04 2003
+++ ltmain.sh	Mon Dec  8 04:11:26 2003
@@ -4053,10 +4053,10 @@
 
 # Directory that this library needs to be installed in:
 libdir='$install_libdir'"
-	  if test "$installed" = no && test $need_relink = yes; then
-	    $echo >> $output "\
-relink_command=\"$relink_command\""
-	  fi
+#	  if test "$installed" = no && test $need_relink = yes; then
+#	    $echo >> $output "\
+#relink_command=\"$relink_command\""
+#	  fi
 	done
       fi
 
--- xmms/Makefile.in.orig	Fri Sep  5 06:01:20 2003
+++ xmms/Makefile.in	Mon Dec  8 03:11:12 2003
@@ -176,8 +176,8 @@
 bin_PROGRAMS = xmms
 
 xmms_LDFLAGS = -export-dynamic
-xmms_LDADD = @GTK_LIBS@ @PTHREAD_LIBS@ @SM_LIBS@ @VM_LIBS@ \
-@POSIX_LIBS@ $(top_builddir)/libxmms/libxmms.la @LTLIBINTL@
+xmms_LDADD = $(top_builddir)/libxmms/libxmms.la @GTK_LIBS@ \
+@PTHREAD_LIBS@ @SM_LIBS@ @VM_LIBS@ @POSIX_LIBS@ @LTLIBINTL@
 
 
 INCLUDES = @GTK_CFLAGS@ @XMMS_DEFINES@ @ARCH_DEFINES@ \
