sna: Add missing include of DPMS constants
Fixes build with slightly older X servers. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
6da7993518
commit
0f15bfb190
|
|
@ -57,6 +57,13 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#include <mi.h>
|
||||
#include <micmap.h>
|
||||
|
||||
#if defined(HAVE_X11_EXTENSIONS_DPMSCONST_H)
|
||||
#include <X11/extensions/dpmsconst.h>
|
||||
#else
|
||||
#define DPMSModeOn 0
|
||||
#define DPMSModeOff 3
|
||||
#endif
|
||||
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/fcntl.h>
|
||||
#include <sys/poll.h>
|
||||
|
|
|
|||
Loading…
Reference in New Issue