diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build index be6dff9d..3d466d52 100644 --- a/meson.build +++ b/meson.build @@ -223,6 +223,9 @@ if cc.has_header('cpuid.h') # FIXME: Do we need the example link test from configure.ac? config.set('HAVE_CPUID_H', 1) endif +if cc.has_header_symbol('unistd.h', 'gettid', args : '-D_GNU_SOURCE') + config.set('HAVE_GETTID', 1) +endif if cc.has_member('struct sysinfo', 'totalram', prefix : '#include <sys/sysinfo.h>') |