From e8321503c6404012f2c760f381a1e19f8e0ef141 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 30 Jan 2020 23:31:35 +0100 Subject: meson: add missing function check (getisax) .. and add gettimeofday to the list of funcs to check instead of having a separate check for it. --- meson.build | 6 +----- 1 file changed, 1 insertion(+), 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 ', -- cgit v1.2.1