diff options
author | Matt Caswell <matt@openssl.org> | 2015-06-02 20:18:05 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-06-02 23:38:03 +0100 |
commit | b1d5b8a4a47f0f3c0e10c904b3b0fdc53a235fd0 (patch) | |
tree | 369b8af1d4f87feed29cb04024ea6669933e9634 /crypto/bio | |
parent | fb22f7406485f1c4e08dbf065d75146c2336b345 (diff) |
Fix compilation failure for some tool chains
Some tool chains (e.g. android) do not define IP_PMTUDISC_PROBE, and so
this build breaks.
Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 133dce447b259e0bb93076bf5fd0ce475d16910a)
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/bss_dgram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/bss_dgram.c b/crypto/bio/bss_dgram.c index 6493a38c08..7fcd831da0 100644 --- a/crypto/bio/bss_dgram.c +++ b/crypto/bio/bss_dgram.c @@ -897,7 +897,7 @@ static long dgram_ctrl(BIO *b, int cmd, long num, void *ptr) perror("setsockopt"); ret = -1; } -# elif defined(OPENSSL_SYS_LINUX) && defined(IP_MTU_DISCOVER) +# elif defined(OPENSSL_SYS_LINUX) && defined(IP_MTU_DISCOVER) && defined (IP_PMTUDISC_PROBE) if ((sockopt_val = num ? IP_PMTUDISC_PROBE : IP_PMTUDISC_DONT), (ret = setsockopt(b->num, IPPROTO_IP, IP_MTU_DISCOVER, &sockopt_val, sizeof(sockopt_val))) < 0) { |