[patch] xf86Crtc.c

Pat Kane pekane52 at gmail.com
Wed Dec 17 10:48:41 PST 2008


Below is a patch that will allow xf86Crtc.c to compile if
RANDR_GET_CRTC_INTERFACE
is turned off.  Only the first change is needed, the second one is
just to show where
the compile problem occurs.

I have not actually compiled this, I found the problem by readng the code...

Pat
---

*** a/xserver/hw/xfree86/xf86Crtc.c     2008-12-17 12:36:09.000000000 -0600
--- b/xserver/hw/xfree86/xf86Crtc.c     2008-12-17 12:41:07.000000000 -0600
***************
*** 2524,2531 ****
      int                       c;

      for (c = 0; c < config->num_crtc; c++) {
- #if RANDR_GET_CRTC_INTERFACE
        xf86CrtcPtr     crtc = config->crtc[c];
        xf86OutputPtr   output = NULL;
        uint32_t        desired_outputs = 0, current_outputs = 0;
        int             o;
--- 2524,2531 ----
      int                       c;

      for (c = 0; c < config->num_crtc; c++) {
        xf86CrtcPtr     crtc = config->crtc[c];
+ #if RANDR_GET_CRTC_INTERFACE
        xf86OutputPtr   output = NULL;
        uint32_t        desired_outputs = 0, current_outputs = 0;
        int             o;
***************
*** 2551,2557 ****
            !desired_outputs)
            (*crtc->funcs->dpms)(crtc, DPMSModeOff);
  #else
!       (*crtc->funcs->dpms)(crtc, DPMSModeOff);
  #endif
      }
  }
--- 2551,2557 ----
            !desired_outputs)
            (*crtc->funcs->dpms)(crtc, DPMSModeOff);
  #else
!       (*crtc->funcs->dpms)(crtc, DPMSModeOff);  /* crtc needed here -- PEK */
  #endif
      }
  }



More information about the xorg mailing list