diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2010-01-05 20:55:02 +0100 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2010-01-05 21:06:13 +0100 |
commit | 5dbc1b333b85695735dc5b484372758b9979b693 (patch) | |
tree | f846acb10f12def5fcfa12601c1d562188cbdfd1 /libkms/api.c | |
parent | dfbaffea07ba785d5a2d5493282f416488e217cc (diff) |
libkms: Make vmwgfx optional
Diffstat (limited to 'libkms/api.c')
-rw-r--r-- | libkms/api.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libkms/api.c b/libkms/api.c index 6f899c41..478fa38c 100644 --- a/libkms/api.c +++ b/libkms/api.c @@ -26,6 +26,7 @@ **************************************************************************/ +#include "config.h" #include <errno.h> #include <stdlib.h> #include <string.h> @@ -33,7 +34,11 @@ int kms_create(int fd, struct kms_driver **out) { +#ifdef HAVE_VMWGFX return vmwgfx_create(fd, out); +#else + return -ENOSYS; +#endif } int kms_get_prop(struct kms_driver *kms, unsigned key, unsigned *out) |