summaryrefslogtreecommitdiff
path: root/graphics/libdrm/files/patch-meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libdrm/files/patch-meson.build')
-rw-r--r--graphics/libdrm/files/patch-meson.build23
1 files changed, 23 insertions, 0 deletions
diff --git a/graphics/libdrm/files/patch-meson.build b/graphics/libdrm/files/patch-meson.build
new file mode 100644
index 000000000000..bc23fec83296
--- /dev/null
+++ b/graphics/libdrm/files/patch-meson.build
@@ -0,0 +1,23 @@
+- sys/sysctl.h isn't self-sufficient
+- tests don't use Bash features
+
+--- meson.build.orig 2019-04-19 15:52:29 UTC
++++ meson.build
+@@ -181,7 +181,7 @@ endif
+ dep_m = cc.find_library('m', required : false)
+ foreach header : ['sys/sysctl.h', 'sys/select.h', 'alloca.h']
+ config.set('HAVE_' + header.underscorify().to_upper(),
+- cc.compiles('#include <@0@>'.format(header), name : '@0@ works'.format(header)))
++ cc.compiles('#include <sys/types.h>\n#include <@0@>'.format(header), name : '@0@ works'.format(header)))
+ endforeach
+ if cc.has_header_symbol('sys/sysmacros.h', 'major')
+ config.set10('MAJOR_IN_SYSMACROS', true)
+@@ -249,7 +249,7 @@ endif
+ with_man_pages = with_man_pages != 'false' and prog_xslt.found() and prog_sed.found()
+
+ # Used for tets
+-prog_bash = find_program('bash')
++prog_bash = find_program('sh')
+
+ config.set10('HAVE_VISIBILITY',
+ cc.compiles('''int foo_hidden(void) __attribute__((visibility(("hidden"))));''',