summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2020-01-30 23:31:35 +0100
committerMathieu Duponchelle <mathieu@centricular.com>2020-01-30 23:31:35 +0100
commite8321503c6404012f2c760f381a1e19f8e0ef141 (patch)
treecef9d8b5206269e14b1ee01133a4e21fb3b64fd9
parent8992d5b4fc37b3bd650e26d450f7fb6faefebaeb (diff)
downloadpixman-e8321503c6404012f2c760f381a1e19f8e0ef141.tar.gz
meson: add missing function check (getisax)
.. and add gettimeofday to the list of funcs to check instead of having a separate check for it.
-rw-r--r--meson.build6
1 files changed, 1 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index 45ef219..15d3409 100644
--- a/meson.build
+++ b/meson.build
@@ -443,7 +443,7 @@ if pthreads_found
config.set('HAVE_PTHREADS', 1)
endif
-funcs = ['sigaction', 'alarm', 'mprotect', 'getpagesize', 'mmap']
+funcs = ['sigaction', 'alarm', 'mprotect', 'getpagesize', 'mmap', 'getisax', 'gettimeofday']
# mingw claimes to have posix_memalign, but it doesn't
if host_machine.system() != 'windows'
funcs += 'posix_memalign'
@@ -455,10 +455,6 @@ foreach f : funcs
endif
endforeach
-if cc.has_function('gettimeofday')
- config.set('HAVE_GETTIMEOFDAY', 1)
-endif
-
# This is only used in one test, that defines _GNU_SOURCE
if cc.has_function('feenableexcept',
prefix : '#define _GNU_SOURCE\n#include <fenv.h>',