meson: add sizeof checks for meson

this fixes the building for systems where int and long does not have the
same size.

Differential Revision:
This commit is contained in:
Marcel Hollerbach 2018-10-04 14:21:13 +02:00
parent 01e6f80e57
commit 124fbd3fa3
1 changed files with 4 additions and 1 deletions

View File

@ -174,4 +174,7 @@ endif
if config_h.has('HAVE_KEVENT')
config_h.set('HAVE_NOTIFY_KEVENT', '1')
config_h.set('SIZEOF_INT', cc.sizeof('int'))
config_h.set('SIZEOF_LONG', cc.sizeof('long'))