aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2015-10-20 23:44:29 +0800
committerKoop Mast <kwm@FreeBSD.org>2015-10-20 23:44:29 +0800
commit3a6ca959c10cf05730e3d60e2e3b0fc8062e669e (patch)
tree1d07677317865527425108397774c467c317397d /graphics
parent25992a0b05b18683254e8b060050172a5ac38091 (diff)
downloadfreebsd-ports-gnome-3a6ca959c10cf05730e3d60e2e3b0fc8062e669e.tar.gz
freebsd-ports-gnome-3a6ca959c10cf05730e3d60e2e3b0fc8062e669e.tar.zst
freebsd-ports-gnome-3a6ca959c10cf05730e3d60e2e3b0fc8062e669e.zip
Unbreak libdrm on 9.3-R.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/libdrm/files/patch-xf86drmMode.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/graphics/libdrm/files/patch-xf86drmMode.c b/graphics/libdrm/files/patch-xf86drmMode.c
index 852a2c4147a9..9881bb1a4613 100644
--- a/graphics/libdrm/files/patch-xf86drmMode.c
+++ b/graphics/libdrm/files/patch-xf86drmMode.c
@@ -2,9 +2,17 @@ Disable checking for hw.dri.%d.modesetting.
This sysctl is only available if a KMS module is loaded. But the libdrm
check happens before X got a chance of loading the KMS module.
---- xf86drmMode.c.orig 2014-08-27 20:04:46.000000000 +0200
-+++ xf86drmMode.c 2014-10-18 15:12:02.586937600 +0200
-@@ -774,38 +774,7 @@
+--- xf86drmMode.c.orig 2015-08-21 16:50:01.000000000 +0200
++++ xf86drmMode.c 2015-10-20 17:34:48.000000000 +0200
+@@ -47,6 +47,7 @@
+ #include <stdlib.h>
+ #include <sys/ioctl.h>
+ #ifdef HAVE_SYS_SYSCTL_H
++#include <sys/types.h>
+ #include <sys/sysctl.h>
+ #endif
+ #include <stdio.h>
+@@ -781,38 +782,7 @@ int drmCheckModesettingSupported(const c
if (found)
return 0;
#elif defined (__FreeBSD__) || defined (__FreeBSD_kernel__)