diff -uNr libdv-0.104/encodedv/dvconnect.c libdv-0.104-new/encodedv/dvconnect.c --- libdv-0.104/encodedv/dvconnect.c 2004-05-30 22:05:23.000000000 -0400 +++ libdv-0.104-new/encodedv/dvconnect.c 2005-04-28 10:43:43.000000000 -0400 @@ -857,12 +857,13 @@ int rt_raisepri (int pri) { -#ifdef _SC_PRIORITY_SCHEDULING +#if defined(_SC_PRIORITY_SCHEDULING) && !defined(__APPLE__) struct sched_param scp; /* * Verify that scheduling is available */ +#if defined(_SC_PRIORITY_SCHEDULING) && !defined(__APPLE__) if (sysconf (_SC_PRIORITY_SCHEDULING) == -1) { fprintf (stderr, "WARNING: RR-scheduler not available, " "disabling.\n"); @@ -877,6 +878,11 @@ } #endif return (0); +#else + fprintf (stderr, "WARNING: RR-scheduler not available, " + "disabling.\n"); + return (-1); +#endif } /* ------------------------------------------------------------------------