From 8e81df07a3e3ea7abc2159e9ebb5bef6b9caf68a Mon Sep 17 00:00:00 2001 From: wens Date: Tue, 8 Mar 2005 08:55:54 +0000 Subject: add support for hugetblpage of Linux 2.6 do not use this if you do not know what this is git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2581 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/common.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/common.h b/include/common.h index cff8cbf4..a17e7a15 100644 --- a/include/common.h +++ b/include/common.h @@ -213,4 +213,8 @@ #define likely(x) __builtin_expect(!!(x), 1) #define unlikely(x) __builtin_expect(!!(x), 0) +#ifndef SHM_HUGETLB +#define SHM_HUGETLB 04000 /* segment is mapped via hugetlb */ +#endif + #endif -- cgit v1.2.3