summaryrefslogtreecommitdiff
path: root/libssh2-sys/build.rs
diff options
context:
space:
mode:
authorMarton Suranyi <susu@users.noreply.github.com>2019-04-18 17:53:56 +0200
committerAlex Crichton <alex@alexcrichton.com>2019-04-18 08:53:56 -0700
commit12ff5ea72aee8804ce41792489961523bda4cb4b (patch)
treeb7fb489ce479a8b260bae23d925888d9238ac08f /libssh2-sys/build.rs
parent74d7f04dbee9997510bdad5608bb06970c6b4c8a (diff)
downloadssh2-rs-12ff5ea72aee8804ce41792489961523bda4cb4b.zip
Define HAVE_POLL for everything except for Windows (#111)
Fixes #110
Diffstat (limited to 'libssh2-sys/build.rs')
-rw-r--r--libssh2-sys/build.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/libssh2-sys/build.rs b/libssh2-sys/build.rs
index a4151bd..d4bd6a0 100644
--- a/libssh2-sys/build.rs
+++ b/libssh2-sys/build.rs
@@ -92,6 +92,7 @@ fn main() {
cfg.define("LIBSSH2_OPENSSL", None);
cfg.define("HAVE_LIBCRYPT32", None);
cfg.define("HAVE_EVP_AES_128_CTR", None);
+ cfg.define("HAVE_POLL", None);
cfg.file("libssh2/src/openssl.c");
@@ -106,10 +107,6 @@ fn main() {
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);