From 27983d603820cc76cbc87148bc24b55470f03610 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 13 Mar 2022 17:05:41 +0100 Subject: [PATCH] [meson] Another try to fix build on Windows. Refs #140 --- meson.build | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 1c602681..d6965c8a 100644 --- a/meson.build +++ b/meson.build @@ -166,8 +166,13 @@ conf_data.set10('HAVE_NET_IF_H', compiler.has_header('net/if.h')) conf_data.set10('HAVE_STDINT_H', compiler.has_header('stdint.h')) conf_data.set10('HAVE_INTTYPES_H', compiler.has_header('inttypes.h')) -conf_data.set('HAVE_PWD_H', compiler.has_header('pwd.h')) -conf_data.set('HAVE_TERMIOS_H', compiler.has_header('termios.h')) + +if compiler.has_header('pwd.h') + conf_data.set('HAVE_PWD_H', 1) +endif +if compiler.has_header('termios.h') + conf_data.set('HAVE_TERMIOS_H', 1) +endif conf_data.set10('HAVE_POLL_H', compiler.has_header('poll.h')) conf_data.set10('HAVE_SYS_TYPES_H', compiler.has_header('sys/types.h'))