diff options
author | Steve Lhomme <slhomme@videolan.org> | 2018-09-27 15:00:43 +0300 |
---|---|---|
committer | Steve Lhomme <slhomme@videolan.org> | 2018-09-28 16:52:16 +0300 |
commit | 92b7e8bd536228b145e6c315987a4908bea3b38a (patch) | |
tree | 89b18f192b193d2c0c80c92496f702e51a01272d /meson.build | |
parent | 150b4e2c575670c8827765e91793816aae758523 (diff) |
detect unistd.h availability
It doesn't exist on MSVC and it's not needed.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
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 <malloc.h>') 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', |