From ff792066c98858c002f01b4c24b899b3791eb9de Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 1 Nov 2012 10:41:29 +0100 Subject: kms: Allow compiling libkms with Intel support Signed-off-by: Laurent Pinchart --- libkms/linux.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libkms/linux.c b/libkms/linux.c index fc4f205c..4f861213 100644 --- a/libkms/linux.c +++ b/libkms/linux.c @@ -101,8 +101,12 @@ linux_from_sysfs(int fd, struct kms_driver **out) if (ret) return ret; - if (!strcmp(name, "intel")) + if (0) + {} +#ifdef HAVE_INTEL + else if (!strcmp(name, "intel")) ret = intel_create(fd, out); +#endif #ifdef HAVE_VMWGFX else if (!strcmp(name, "vmwgfx")) ret = vmwgfx_create(fd, out); -- cgit v1.2.3