# HG changeset patch # User jkeil # Date 995568442 0 # Node ID be674b95b4851ca38f1ac5b528aebce9858082b3 # Parent bb1f389a002cd619ba9eceaac1bd4e5cb29e1f8e x11_common does not compile, when the XDPMS extension is not available on the target system. diff -r bb1f389a002c -r be674b95b485 libvo/x11_common.c --- a/libvo/x11_common.c Thu Jul 19 18:46:29 2001 +0000 +++ b/libvo/x11_common.c Thu Jul 19 18:47:22 2001 +0000 @@ -17,7 +17,9 @@ #include #include +#ifdef HAVE_XDPMS #include +#endif static int dpms_disabled=0; static int timeout_save=0; @@ -278,6 +280,7 @@ void saver_on(Display *mDisplay) { +#ifdef HAVE_XDPMS int nothing; if (dpms_disabled) { @@ -298,7 +301,8 @@ } } } - +#endif + if (timeout_save) { int dummy, interval, prefer_blank, allow_exp; @@ -311,7 +315,9 @@ void saver_off(Display *mDisplay) { - int interval, prefer_blank, allow_exp, nothing; + int interval, prefer_blank, allow_exp; +#ifdef HAVE_XDPMS + int nothing; if (DPMSQueryExtension(mDisplay, ¬hing, ¬hing)) { @@ -327,6 +333,7 @@ printf ("stat: %d\n", stat); } } +#endif XGetScreenSaver(mDisplay, &timeout_save, &interval, &prefer_blank, &allow_exp); if (timeout_save) XSetScreenSaver(mDisplay, 0, interval, prefer_blank, allow_exp);