From e6c4edbf2fb0ef1b4216b791de51464f4234bd99 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 27 Feb 2015 11:28:05 -0800 Subject: [PATCH] shared: Work around when linux/if_alg.h header is not available --- src/shared/crypto.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/shared/crypto.c b/src/shared/crypto.c index 7f776745d..d5cd9158d 100644 --- a/src/shared/crypto.c +++ b/src/shared/crypto.c @@ -33,8 +33,14 @@ #include "src/shared/util.h" #include "src/shared/crypto.h" -#ifndef PF_ALG +#ifndef HAVE_LINUX_IF_ALG_H +#ifndef HAVE_LINUX_TYPES_H +typedef uint8_t __u8; +typedef uint16_t __u16; +typedef uint32_t __u32; +#else #include +#endif struct sockaddr_alg { __u16 salg_family; -- 2.47.3