From 124fbd3fa3464a4fe8cb436666f2cdc09d793162 Mon Sep 17 00:00:00 2001 From: Marcel Hollerbach Date: Thu, 4 Oct 2018 14:21:13 +0200 Subject: [PATCH] meson: add sizeof checks for meson this fixes the building for systems where int and long does not have the same size. Differential Revision: https://phab.enlightenment.org/D7143 --- header_checks/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/header_checks/meson.build b/header_checks/meson.build index e54e17943c..01e557e95f 100644 --- a/header_checks/meson.build +++ b/header_checks/meson.build @@ -174,4 +174,7 @@ endif if config_h.has('HAVE_KEVENT') config_h.set('HAVE_NOTIFY_KEVENT', '1') -endif \ No newline at end of file +endif + +config_h.set('SIZEOF_INT', cc.sizeof('int')) +config_h.set('SIZEOF_LONG', cc.sizeof('long'))