freebsd-ports/graphics/mesa-dri/files/patch-include_GL_internal_dri__interface.h
Matthew Rezny 410afd0d3b Update the Mesa ports to 17.3.1 and switch to LLVM5 by default
Correct dependencies: remove the cruft added to mesa-dri in the previous
commit (those are mesa-libs deps), add a RUN_DEPENDS for libclc to clover

Clean up patches, remove one stale patch
2017-12-25 23:30:54 +00:00

19 lines
512 B
C

GCC on 9.x doesn't allow types to be overwritten, these types are defined
in drm.h also, which causes build issues in xorg-server.
--- include/GL/internal/dri_interface.h.orig 2017-12-21 17:31:21 UTC
+++ include/GL/internal/dri_interface.h
@@ -40,13 +40,7 @@
#ifndef DRI_INTERFACE_H
#define DRI_INTERFACE_H
-#ifdef HAVE_LIBDRM
#include <drm.h>
-#else
-typedef unsigned int drm_context_t;
-typedef unsigned int drm_drawable_t;
-typedef struct drm_clip_rect drm_clip_rect_t;
-#endif
#include <stdint.h>