--- src/gs-job.c.orig Wed Sep 7 09:23:59 2005 +++ src/gs-job.c Mon Sep 12 13:24:11 2005 @@ -29,7 +29,8 @@ #include #include -#if defined(HAVE_SETPRIORITY) && defined(PRIO_PROCESS) +#if defined(HAVE_SETPRIORITY) +#include #include #endif @@ -655,9 +659,11 @@ gs_job_set_widget (GSJob *job, static const char *known_locations [] = { SAVERDIR, LIBEXECDIR "/xscreensaver", - "/usr/X11R6/lib/xscreensaver", + "%%X11BASE%%/lib/xscreensaver", "/usr/libexec/xscreensaver", "/usr/lib/xscreensaver", + "%%X11BASE%%/bin/xscreensaver-hacks", + "%%X11BASE%%/bin", NULL };