From 74d7f04dbee9997510bdad5608bb06970c6b4c8a Mon Sep 17 00:00:00 2001 From: Niels Sascha Reedijk Date: Tue, 22 Jan 2019 18:43:11 +0100 Subject: Define HAVE_POLL for Haiku (#103) This change is required to compile session.c --- libssh2-sys/build.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libssh2-sys') diff --git a/libssh2-sys/build.rs b/libssh2-sys/build.rs index 896ad58..a4151bd 100644 --- a/libssh2-sys/build.rs +++ b/libssh2-sys/build.rs @@ -105,6 +105,11 @@ fn main() { fs::write(build.join("libssh2_config.h"), &config).unwrap(); cfg.include(&build); } + + if target.contains("haiku") { + cfg.define("HAVE_POLL", None); + } + /* Enable newer diffie-hellman-group-exchange-sha1 syntax */ cfg.define("LIBSSH2_DH_GEX_NEW", None); -- cgit v1.2.3