diff options
author | Milind Changire <mchangir@redhat.com> | 2015-11-05 20:08:33 +0530 |
---|---|---|
committer | Niels de Vos <ndevos@redhat.com> | 2015-11-20 03:25:29 -0800 |
commit | 21c7debd3fc2613e10d7ee81543dbd65b2b897fa (patch) | |
tree | e7a70a62f3439d75d9b0c26fb89619ddf55341b1 /rpc/rpc-transport/socket/src/socket.h | |
parent | 3748b6540d7704116cbbef08b7401bdc997464cd (diff) |
build: fix ecdh.h and dh.h deps
openssl/ecdh.h and openssl/dh.h are not available on all platforms,
especially rhel-5.
This patch adds check to autoconf and updates relevant source files.
Added conditional to test for SSL_OP_NO_TICKET and SSL_OP_NO_COMPRESSION
presence before setting the SSL context options.
Macros UTIME_OMIT and UTIME_NOW picked up from Fedora 22
/usr/include/bits/stat.h to help rhel-5 build.
Change-Id: I2bdee4fe643f9c1f5fe77cf89bd30946cd6b591a
Reviewed-on: http://review.gluster.org/#/c/12517/
BUG: 1258594
Signed-off-by: Milind Changire <mchangir@redhat.com>
Reviewed-on: http://review.gluster.org/12518
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'rpc/rpc-transport/socket/src/socket.h')
-rw-r--r-- | rpc/rpc-transport/socket/src/socket.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/rpc-transport/socket/src/socket.h b/rpc/rpc-transport/socket/src/socket.h index 238c1457e4d..c4d27e21947 100644 --- a/rpc/rpc-transport/socket/src/socket.h +++ b/rpc/rpc-transport/socket/src/socket.h @@ -14,10 +14,10 @@ #include <openssl/ssl.h> #include <openssl/err.h> #include <openssl/x509v3.h> -#ifdef ERR_R_DH_LIB +#ifdef HAVE_OPENSSL_DH_H #include <openssl/dh.h> #endif -#ifdef ERR_R_ECDH_LIB +#ifdef HAVE_OPENSSL_ECDH_H #include <openssl/objects.h> #include <openssl/ecdh.h> #endif |