From e7030b6b8714716fb9162c32f3d16beb50260dfc Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Tue, 14 Jun 2016 10:27:34 +0000 Subject: [PATCH] - Fix 780: MAP_ANON not defined in HP-UX 11.31. git-svn-id: file:///svn/unbound/trunk@3790 be551aaa-1e26-0410-a405-d3ace91eadb9 --- compat/arc4random.c | 3 +++ compat/getentropy_linux.c | 3 +++ doc/Changelog | 3 ++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/compat/arc4random.c b/compat/arc4random.c index 2c859f184..a09665c5d 100644 --- a/compat/arc4random.c +++ b/compat/arc4random.c @@ -48,6 +48,9 @@ #else /* !__GNUC__ */ #define inline #endif /* !__GNUC__ */ +#ifndef MAP_ANON +#define MAP_ANON MAP_ANONYMOUS +#endif #define KEYSZ 32 #define IVSZ 8 diff --git a/compat/getentropy_linux.c b/compat/getentropy_linux.c index f8c5e0f7e..b86c0fba2 100644 --- a/compat/getentropy_linux.c +++ b/compat/getentropy_linux.c @@ -60,6 +60,9 @@ #include #endif #include +#ifndef MAP_ANON +#define MAP_ANON MAP_ANONYMOUS +#endif #define REPEAT 5 #define min(a, b) (((a) < (b)) ? (a) : (b)) diff --git a/doc/Changelog b/doc/Changelog index 2f289cae4..aad850cae 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -3,7 +3,8 @@ null delete for wsaevent. - Fix spelling in freebind option man page text. - Fix windows link of ssl with crypt32. - - Fix 779: Union casting is non-portable. + - Fix 779: Union casting is non-portable. + - Fix 780: MAP_ANON not defined in HP-UX 11.31. 13 June 2016: Ralph - Use QTYPE=A for QNAME minimisation. -- 2.47.3