Make the afalg engine build.
There is a conflict in some types between glibc and linux headers. Adding a hack to avoid it.
This commit is contained in:
parent
98bbad839c
commit
86c97f4f4b
@ -38,6 +38,31 @@ diff -up openssl-1.1.0f/Configurations/10-main.conf.build openssl-1.1.0f/Configu
|
||||
},
|
||||
"linux-arm64ilp32" => { # https://wiki.linaro.org/Platform/arm64-ilp32
|
||||
inherit_from => [ "linux-generic32", asm("aarch64_asm") ],
|
||||
diff -up openssl-1.1.0h/engines/afalg/e_afalg.c.build openssl-1.1.0h/engines/afalg/e_afalg.c
|
||||
--- openssl-1.1.0h/engines/afalg/e_afalg.c.build 2018-03-27 15:50:40.000000000 +0200
|
||||
+++ openssl-1.1.0h/engines/afalg/e_afalg.c 2018-06-19 16:56:20.150950529 +0200
|
||||
@@ -36,14 +36,19 @@ void engine_load_afalg_int(void)
|
||||
}
|
||||
#else
|
||||
|
||||
-# include <linux/if_alg.h>
|
||||
# include <fcntl.h>
|
||||
# include <sys/utsname.h>
|
||||
|
||||
-# include <linux/aio_abi.h>
|
||||
# include <sys/syscall.h>
|
||||
# include <errno.h>
|
||||
|
||||
+# define timespec linux_timespec
|
||||
+# define timeval linux_timeval
|
||||
+# define itimerspec linux_itimerspec
|
||||
+# define sigset_t linux_sigset_type
|
||||
+# include <linux/if_alg.h>
|
||||
+# include <linux/aio_abi.h>
|
||||
+
|
||||
# include "e_afalg.h"
|
||||
|
||||
# define AFALG_LIB_NAME "AFALG"
|
||||
diff -up openssl-1.1.0g/test/evptests.txt.build openssl-1.1.0g/test/evptests.txt
|
||||
--- openssl-1.1.0g/test/evptests.txt.build 2017-11-02 15:29:05.000000000 +0100
|
||||
+++ openssl-1.1.0g/test/evptests.txt 2017-11-03 16:37:01.253671494 +0100
|
||||
|
Loading…
Reference in New Issue
Block a user