diff options
author | Marton Suranyi <susu@users.noreply.github.com> | 2019-04-18 17:53:56 +0200 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2019-04-18 08:53:56 -0700 |
commit | 12ff5ea72aee8804ce41792489961523bda4cb4b (patch) | |
tree | b7fb489ce479a8b260bae23d925888d9238ac08f /libssh2-sys/build.rs | |
parent | 74d7f04dbee9997510bdad5608bb06970c6b4c8a (diff) | |
download | ssh2-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.rs | 5 |
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); |