summaryrefslogtreecommitdiff
path: root/libssh2-sys/build.rs
diff options
context:
space:
mode:
authorNiels Sascha Reedijk <niels.reedijk@gmail.com>2019-01-22 18:43:11 +0100
committerAlex Crichton <alex@alexcrichton.com>2019-01-22 09:43:11 -0800
commit74d7f04dbee9997510bdad5608bb06970c6b4c8a (patch)
tree1363eae43e2de291c4634acadb462164b12cb3e6 /libssh2-sys/build.rs
parent65e890da15e033f08413f650c48b192f6cf5c44b (diff)
downloadssh2-rs-74d7f04dbee9997510bdad5608bb06970c6b4c8a.zip
Define HAVE_POLL for Haiku (#103)
This change is required to compile session.c
Diffstat (limited to 'libssh2-sys/build.rs')
-rw-r--r--libssh2-sys/build.rs5
1 files changed, 5 insertions, 0 deletions
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);