aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'libkms/api.c')
-rw-r--r--libkms/api.c5
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 @@
26 **************************************************************************/ 26 **************************************************************************/
27 27
28 28
29#include "config.h"
29#include <errno.h> 30#include <errno.h>
30#include <stdlib.h> 31#include <stdlib.h>
31#include <string.h> 32#include <string.h>
@@ -33,7 +34,11 @@
33 34
34int kms_create(int fd, struct kms_driver **out) 35int kms_create(int fd, struct kms_driver **out)
35{ 36{
37#ifdef HAVE_VMWGFX
36 return vmwgfx_create(fd, out); 38 return vmwgfx_create(fd, out);
39#else
40 return -ENOSYS;
41#endif
37} 42}
38 43
39int kms_get_prop(struct kms_driver *kms, unsigned key, unsigned *out) 44int kms_get_prop(struct kms_driver *kms, unsigned key, unsigned *out)