diff -Naur xmms-1.2.8.old/configure xmms-1.2.8.new/configure --- xmms-1.2.8.old/configure Fri Sep 5 06:00:38 2003 +++ xmms-1.2.8.new/configure Mon Dec 8 03:04:01 2003 @@ -3918,7 +3918,7 @@ # FIXME: Relying on posixy $() will cause problems for # cross-compilation, but unfortunately the echo tests do not # yet detect zsh echo's removal of \ escapes. - archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' + archive_cmds='$nonopt $(test x$module = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' # We need to add '_' to the symbols in $export_symbols first #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' hardcode_direct=yes diff -Naur xmms-1.2.8.old/gnomexmms/gnomexmms.desktop xmms-1.2.8.new/gnomexmms/gnomexmms.desktop --- xmms-1.2.8.old/gnomexmms/gnomexmms.desktop Tue Nov 28 07:20:58 2000 +++ xmms-1.2.8.new/gnomexmms/gnomexmms.desktop Mon Dec 8 03:04:01 2003 @@ -9,6 +9,6 @@ Name[sv]=XMMS-panelprogram Name[pt_BR]=Applet do XMMS Exec=gnomexmms --activate-goad-server=gnomexmms -Icon= +Icon=gnomexmms.xpm Terminal=0 Type=Application diff -Naur xmms-1.2.8.old/libxmms/util.c xmms-1.2.8.new/libxmms/util.c --- xmms-1.2.8.old/libxmms/util.c Wed Jan 15 00:09:18 2003 +++ xmms-1.2.8.new/libxmms/util.c Mon Dec 8 03:04:01 2003 @@ -15,6 +15,13 @@ #include #endif +#if defined (__APPLE__) +#include +#include +#include +#include +#endif + #if TIME_WITH_SYS_TIME # include # include @@ -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__ /* diff -Naur xmms-1.2.8.old/ltmain.sh xmms-1.2.8.new/ltmain.sh --- xmms-1.2.8.old/ltmain.sh Wed Aug 13 21:59:04 2003 +++ xmms-1.2.8.new/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 diff -Naur xmms-1.2.8.old/xmms/Makefile.in xmms-1.2.8.new/xmms/Makefile.in --- xmms-1.2.8.old/xmms/Makefile.in Fri Sep 5 06:01:20 2003 +++ xmms-1.2.8.new/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@ \