[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
Andy Polyakov
appro at openssl.org
Thu Sep 8 07:16:32 UTC 2016
The branch OpenSSL_1_1_0-stable has been updated
via a0c5ccc7c1ec1614b77c76ee0f057e681e7a12e9 (commit)
from 054ef95f56d5dc9feb6f4b9272d3d8bd27b4d4c6 (commit)
- Log -----------------------------------------------------------------
commit a0c5ccc7c1ec1614b77c76ee0f057e681e7a12e9
Author: Andy Polyakov <appro at openssl.org>
Date: Sun Sep 4 22:53:22 2016 +0200
engines/afalg: make it compile with backward compatibility headers.
Reviewed-by: Tim Hudson <tjh at openssl.org>
(cherry picked from commit 4e3997293b3825ed19de20d5484f8c0f66fce534)
-----------------------------------------------------------------------
Summary of changes:
engines/afalg/e_afalg.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/engines/afalg/e_afalg.c b/engines/afalg/e_afalg.c
index 2ea5ba5..2c13ba8 100644
--- a/engines/afalg/e_afalg.c
+++ b/engines/afalg/e_afalg.c
@@ -8,7 +8,9 @@
*/
/* Required for vmsplice */
-#define _GNU_SOURCE
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE
+#endif
#include <stdio.h>
#include <string.h>
#include <unistd.h>
@@ -17,11 +19,13 @@
#include <openssl/async.h>
#include <openssl/err.h>
+#include <sys/socket.h>
#include <linux/version.h>
#define K_MAJ 4
#define K_MIN1 1
#define K_MIN2 0
-#if LINUX_VERSION_CODE <= KERNEL_VERSION(K_MAJ, K_MIN1, K_MIN2)
+#if LINUX_VERSION_CODE <= KERNEL_VERSION(K_MAJ, K_MIN1, K_MIN2) || \
+ !defined(AF_ALG)
# warning "AFALG ENGINE requires Kernel Headers >= 4.1.0"
# warning "Skipping Compilation of AFALG engine"
void engine_load_afalg_int(void)
@@ -30,7 +34,6 @@ void engine_load_afalg_int(void)
#else
# include <linux/if_alg.h>
-# include <sys/socket.h>
# include <fcntl.h>
# include <sys/utsname.h>
More information about the openssl-commits
mailing list