Red build fix.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19744 a1c6a512-1295-4272-9138-f99709370657
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index c8ed91e..99e56d1 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -295,7 +295,9 @@
         }
         else
         {
+#ifdef HAVE_PRIORITY_SCHEDULING
             boost_codec_thread(false);
+#endif
             cancel_cpu_boost();
         }
     }
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c
index 185e462..950ce6e 100644
--- a/uisimulator/common/io.c
+++ b/uisimulator/common/io.c
@@ -220,6 +220,11 @@
     return 1;
 }
 
+int ata_spinup_time(void)
+{
+    return HZ;
+}
+
 static ssize_t io_trigger_and_wait(int cmd)
 {
     void *mythread = NULL;