From ca7a97f2111c051ae599a9e9e2243a9dcc54f601 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Tue, 8 Aug 2017 22:51:32 -0400 Subject: [PATCH] [core] workaround for AIX mmap define AIX might #define mmap mmap64 and this conflicts with .mmap member of struct chunk in chunk.h x-ref: ".mmap in chunk.c on AIX 5.2" https://redmine.lighttpd.net/boards/2/topics/7512?r=7513 --- src/chunk.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/chunk.h b/src/chunk.h index 6751511f..4453a8b4 100644 --- a/src/chunk.h +++ b/src/chunk.h @@ -2,6 +2,10 @@ #define _CHUNK_H_ #include "first.h" +#ifdef _AIX /*(AIX might #define mmap mmap64)*/ +#include "sys-mmap.h" +#endif + #include "buffer.h" #include "array.h"