[Mesa-dev] [PATCH v2] threads, configure.ac, meson.build: define and use HAVE_TIMESPEC_GET
Dylan Baker
dylan at pnwbakers.com
Wed Nov 15 17:52:20 UTC 2017
Quoting Nicolai Hähnle (2017-11-15 06:35:49)
> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>
> v2: add HAVE_TIMESPEC_GET for non-Windows Scons builds
>
> Cc: Jon Turney <jon.turney at dronecode.org.uk>
> Cc: Rob Herring <robh at kernel.org>
> Cc: Alexander von Gluck IV <kallisti5 at unixzen.com>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103674
> Fixes: f1a364878431 ("threads: update for late C11 changes")
> ---
> SConstruct | 7 +++++++
> configure.ac | 1 +
> include/c11/threads_posix.h | 2 +-
> meson.build | 2 +-
> 4 files changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/SConstruct b/SConstruct
> index a59a8ea210e..1ef134af27d 100644
> --- a/SConstruct
> +++ b/SConstruct
> @@ -122,20 +122,27 @@ if env['crosscompile'] and not env['embedded']:
> Export('env')
>
> SConscript(
> 'src/SConscript',
> variant_dir = host_env['build_dir'],
> duplicate = 0, # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html
> )
>
> env = target_env
>
> +if env['platform'] != 'windows':
> + # This is quite incomplete, but it hopefully covers the platforms that
> + # people actually use SCons on...
> + env.Append(CPPDEFINES= [
> + 'HAVE_TIMESPEC_GET',
> + ])
> +
I think that haiku uses scons, I've added one of (and hopefully an appropriate)
person that works on Haiku.
Otherwise I think this looks good, as long as the Haiku guys think this is fine
for them,
Reviewed-by: Dylan Baker <dylan at pnwbakers.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171115/05536969/attachment.sig>
More information about the mesa-dev
mailing list