From: Andy Polyakov Date: Sun, 4 Sep 2016 20:53:22 +0000 (+0200) Subject: engines/afalg: make it compile with backward compatibility headers. X-Git-Tag: OpenSSL_1_1_1-pre1~3582 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4e3997293b3825ed19de20d5484f8c0f66fce534;p=oweals%2Fopenssl.git engines/afalg: make it compile with backward compatibility headers. Reviewed-by: Tim Hudson --- diff --git a/engines/afalg/e_afalg.c b/engines/afalg/e_afalg.c index 2ea5ba5232..2c13ba80ed 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 #include #include @@ -17,11 +19,13 @@ #include #include +#include #include #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 -# include # include # include