summaryrefslogtreecommitdiff
path: root/lib/libdrm/tests/kms/kms-universal-planes.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libdrm/tests/kms/kms-universal-planes.c')
-rw-r--r--lib/libdrm/tests/kms/kms-universal-planes.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libdrm/tests/kms/kms-universal-planes.c b/lib/libdrm/tests/kms/kms-universal-planes.c
index 1d7938802..d8e5fc48f 100644
--- a/lib/libdrm/tests/kms/kms-universal-planes.c
+++ b/lib/libdrm/tests/kms/kms-universal-planes.c
@@ -21,6 +21,10 @@
* IN THE SOFTWARE.
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <fcntl.h>
#include <getopt.h>
#include <stdbool.h>
@@ -28,7 +32,7 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
-#if HAVE_SYS_SELECT_H
+#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif
@@ -208,9 +212,9 @@ int main(int argc, char *argv[])
printf("Planes: %u\n", device->num_planes);
for (i = 0; i < device->num_planes; i++) {
+ struct kms_plane *plane = device->planes[i];
const char *type = NULL;
- plane = device->planes[i];
switch (plane->type) {
case DRM_PLANE_TYPE_OVERLAY:
type = "overlay";