summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-08-08 22:51:32 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2017-08-08 22:51:32 -0400
commitca7a97f2111c051ae599a9e9e2243a9dcc54f601 (patch)
tree25d804bc6fe184eb3ee99dfcec16ba0a65a971e0
parentb6bd4d3d9452e6d2de9e382452b864080be7a0f8 (diff)
downloadlighttpd1.4-ca7a97f2111c051ae599a9e9e2243a9dcc54f601.tar.gz
lighttpd1.4-ca7a97f2111c051ae599a9e9e2243a9dcc54f601.zip
[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
-rw-r--r--src/chunk.h4
1 files changed, 4 insertions, 0 deletions
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"