summaryrefslogtreecommitdiff
path: root/gbm.c
diff options
context:
space:
mode:
authorDominik Behr <dbehr@chromium.org>2014-11-11 07:17:11 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-11-12 02:43:02 +0000
commitf7b33d7d151519a2123ab96ff2a6a9382e772bbd (patch)
treebd96dec4a66f63222e2648b245901d095e54d1be /gbm.c
parent5bb6adcaf525eef335fb178e48a4dd62e65d5de8 (diff)
Fixed O_CLOEXEC and missing semicolon.
Change-Id: I50bff28ff764610d66b362aa6859054a64a6a1df Signed-off-by: Dominik Behr <dbehr@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/229180 Reviewed-by: David Sodman <dsodman@chromium.org>
Diffstat (limited to 'gbm.c')
-rw-r--r--gbm.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gbm.c b/gbm.c
index 284dc28..2ccfe32 100644
--- a/gbm.c
+++ b/gbm.c
@@ -7,6 +7,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
+#include <fcntl.h>
#include <xf86drm.h>
#include "gbm_priv.h"
@@ -265,13 +266,13 @@ gbm_bo_get_fd(struct gbm_bo *bo)
{
int fd;
- if (drmPrimeHandleToFD(dri->get_fd(),
- bo->handle,
+ if (drmPrimeHandleToFD(gbm_device_get_fd(bo->gbm),
+ gbm_bo_get_handle(bo).u32,
DRM_CLOEXEC,
&fd))
return fd;
else
- return -1
+ return -1;
}
PUBLIC void