diff options
author | Tony Kelman <tony@kelman.net> | 2015-07-07 06:55:05 -0400 |
---|---|---|
committer | Tony Kelman <tony@kelman.net> | 2015-07-07 06:55:05 -0400 |
commit | febc8c4612b6be1d891f658e50f3f70cc5dc5945 (patch) | |
tree | 222f355483637e11ea98b3ff6937ff5c5235515a /include/git2/sys/commit.h | |
parent | 3704ac35d32a274339a66cd51abce6dbea315022 (diff) | |
download | libgit2-febc8c4612b6be1d891f658e50f3f70cc5dc5945.tar.gz |
Fix undefined reference with old versions of openssl
Versions prior to 0.9.8f did not have this function, rhel/centos5 are still on a
heavily backported version of 0.9.8e and theoretically supported until March 2017
Without this ifdef, I get the following link failure:
```
CMakeFiles/libgit2_clar.dir/src/openssl_stream.c.o: In function `openssl_connect':
openssl_stream.c:(.text+0x45a): undefined reference to `SSL_set_tlsext_host_name'
collect2: error: ld returned 1 exit status
make[6]: *** [libgit2_clar] Error 1
```
Diffstat (limited to 'include/git2/sys/commit.h')
0 files changed, 0 insertions, 0 deletions