mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[meson] Check for _SC_PAGE_SIZE
This commit is contained in:
parent
6f54c89ab4
commit
5f68d5f9ff
@ -1096,10 +1096,16 @@ if compiler.has_function('strtoul', prefix: '#include <stdlib.h>')
|
||||
conf_data.set('HAVE_STRTOUL', 1)
|
||||
endif
|
||||
|
||||
if compiler.compiles('int a; typeof(a) b;')
|
||||
if compiler.compiles('int a; typeof(a) b;', name: 'typeof')
|
||||
conf_data.set('HAVE_TYPEOF', 1)
|
||||
endif
|
||||
|
||||
if compiler.compiles('''#include <unistd.h>
|
||||
int func(void) { return sysconf(_SC_PAGE_SIZE); }
|
||||
''', name: '_SC_PAGE_SIZE')
|
||||
conf_data.set('HAVE_SC_PAGE_SIZE', 1)
|
||||
endif
|
||||
|
||||
conf_data.set('ICONV_CONST', true)
|
||||
|
||||
sysconfdir = get_option('prefix') / get_option('sysconfdir')/'elinks'
|
||||
|
Loading…
Reference in New Issue
Block a user