From 681f41978a29ec2a995bda619ccea6f4f9315d46 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 21 Mar 2018 18:15:49 -0400 Subject: [PATCH] dmabufallocator: Fix build if LINUX_DMA_BUF_H is missing --- gst-libs/gst/allocators/gstdmabuf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/allocators/gstdmabuf.c b/gst-libs/gst/allocators/gstdmabuf.c index e9c5dd3736..ec40ea3e10 100644 --- a/gst-libs/gst/allocators/gstdmabuf.c +++ b/gst-libs/gst/allocators/gstdmabuf.c @@ -48,9 +48,10 @@ static gpointer gst_dmabuf_mem_map (GstMemory * gmem, GstMapInfo * info, gsize maxsize) { GstAllocator *allocator = gmem->allocator; + gpointer ret; + #ifdef HAVE_LINUX_DMA_BUF_H struct dma_buf_sync sync = { DMA_BUF_SYNC_START }; - gpointer ret; if (info->flags & GST_MAP_READ) sync.flags |= DMA_BUF_SYNC_READ;