Skip to content
Permalink
Browse files

meson: fix mincore check variables not being defined in config.h

  • Loading branch information...
Snaipe committed Sep 19, 2019
1 parent b16c0f3 commit 38fe63046fbabcae34ebc2ee9867d990ac28c4c5
Showing with 8 additions and 2 deletions.
  1. +6 −2 meson.build
  2. +2 −0 src/config.h.in
@@ -136,7 +136,7 @@ check_prelude = '''
#define _GNU_SOURCE
'''

prototype_check = '''
prototype_check = check_prelude + '''
@0@
typedef @1@;
static _ *check = @2@;
@@ -180,7 +180,11 @@ foreach check : checks
result = cc.has_header(name)
endif

name = 'HAVE_@1@@0@'.format(name.to_upper(), chk_prefix.to_upper())
if check.has_key('var')
name = check.get('var')
else
name = 'HAVE_@1@@0@'.format(name.to_upper(), chk_prefix.to_upper())
endif
config.set(name, result)
endforeach

@@ -54,6 +54,8 @@
#mesondefine HAVE_GETTIMEOFDAY
#mesondefine HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP
#mesondefine HAVE_ENVIRON
#mesondefine HAVE_MINCORE
#mesondefine HAVE_UNSIGNED_MINCORE_VEC
#mesondefine ASSEMBLER_SUPPORTS_HIDDEN

# define BXFI_STR_(x) #x

0 comments on commit 38fe630

Please sign in to comment.
You can’t perform that action at this time.