From 92b7e8bd536228b145e6c315987a4908bea3b38a Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Thu, 27 Sep 2018 14:00:43 +0200 Subject: detect unistd.h availability It doesn't exist on MSVC and it's not needed. --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 986b120..1269636 100644 --- a/meson.build +++ b/meson.build @@ -137,6 +137,10 @@ elif cc.has_function('_aligned_malloc', prefix: '#include ') cdata.set('HAVE_ALIGNED_MALLOC', 1) endif +if cc.check_header('unistd.h') + cdata.set('HAVE_UNISTD_H', 1) +endif + if (get_option('buildtype') != 'debug' and get_option('buildtype') != 'plain') add_project_arguments('-fomit-frame-pointer', '-ffast-math', -- cgit v1.2.3