This was ported over from the AC_CHECK_{FUNCS,HEADERS} lists in configure.ac, but I never actually checked if the resulting CPP defines are used. Turns out, lots of symbols, not a lot of define usage. --- meson.build | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/meson.build b/meson.build index 91f05031..c2ed707a 100644 --- a/meson.build +++ b/meson.build @@ -163,38 +163,13 @@ foreach header : [ endforeach foreach sym : [ - 'dup2', - 'fork', - 'getcwd', 'getmntent', 'getmntinfo', - 'gettimeofday', - 'memmove', - 'memset', - 'mkdir', - 'realpath', - 'regcomp', - 'rmdir', - 'setenv', - 'setlocale', - 'strcasecmp', - 'strchr', - 'strcspn', - 'strdup', - 'strerror', 'strndup', 'strnlen', - 'strnlen', - 'strrchr', - 'strsep', 'strsep', - 'strstr', - 'strtol', 'swprintf', 'tcflush', - 'tcflush', - 'uname', - 'wcwidth', ] have = cc.has_function(sym, args : '-D_GNU_SOURCE') conf.set10('HAVE_' + sym.to_upper(), have) -- 2.22.0