30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
$NetBSD$
|
|
|
|
From FreeBSD ports graphics/libdrm 2.4.98
|
|
- sys/sysctl.h isn't self-sufficient
|
|
|
|
--- meson.build.orig 2019-04-19 15:52:29.000000000 +0000
|
|
+++ meson.build
|
|
@@ -35,11 +35,7 @@ config.set10('UDEV', get_option('udev'))
|
|
with_freedreno_kgsl = get_option('freedreno-kgsl')
|
|
with_install_tests = get_option('install-test-programs')
|
|
|
|
-if ['freebsd', 'dragonfly', 'netbsd'].contains(host_machine.system())
|
|
- dep_pthread_stubs = dependency('pthread-stubs', version : '>= 0.4')
|
|
-else
|
|
- dep_pthread_stubs = []
|
|
-endif
|
|
+dep_pthread_stubs = []
|
|
dep_threads = dependency('threads')
|
|
|
|
cc = meson.get_compiler('c')
|
|
@@ -181,7 +177,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)
|