From e0c284c6e7c98b3a2fbd5c60d59b928d6e7af88a Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Fri, 24 Apr 2009 15:28:40 +0530 Subject: iobuf: Define MAP_ANONYMOUS Signed-off-by: Anand V. Avati --- libglusterfs/src/iobuf.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libglusterfs/src/iobuf.h') diff --git a/libglusterfs/src/iobuf.h b/libglusterfs/src/iobuf.h index 71b115c5d..d17c1db48 100644 --- a/libglusterfs/src/iobuf.h +++ b/libglusterfs/src/iobuf.h @@ -25,6 +25,17 @@ #include #include +/* Lets try to define the new anonymous mapping + * flag, in case the system is still using the + * now deprecated MAP_ANON flag. + * + * Also, this should ideally be in a centralized/common + * header which can be used by other source files also. + */ +#ifndef MAP_ANONYMOUS +#define MAP_ANONYMOUS MAP_ANON +#endif + /* one allocatable unit for the consumers of the IOBUF API */ /* each unit hosts @page_size bytes of memory */ struct iobuf; -- cgit