diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-10 16:35:32 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-08-10 16:35:32 +0800 |
commit | a9e607158671c1d8625125a58bbd40dd18acb8b5 (patch) | |
tree | b432d5867c3a97ecb8e4082118b7e2f8314d0cab /include | |
parent | 4fe6fa6ea16743f6e6f265e1131df3bff3767116 (diff) | |
download | pttbbs-a9e607158671c1d8625125a58bbd40dd18acb8b5.tar pttbbs-a9e607158671c1d8625125a58bbd40dd18acb8b5.tar.gz pttbbs-a9e607158671c1d8625125a58bbd40dd18acb8b5.tar.bz2 pttbbs-a9e607158671c1d8625125a58bbd40dd18acb8b5.tar.lz pttbbs-a9e607158671c1d8625125a58bbd40dd18acb8b5.tar.xz pttbbs-a9e607158671c1d8625125a58bbd40dd18acb8b5.tar.zst pttbbs-a9e607158671c1d8625125a58bbd40dd18acb8b5.zip |
user defined SHMALIGNEDSIZE.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3023 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r-- | include/pttstruct.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h index 7c5a12a6..1167fb33 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -586,8 +586,8 @@ typedef struct { #endif } SHM_t; -#ifdef USE_HUGETLB // 4MB aligned -# define SHMSIZE (sizeof(SHM_t)/(1048576*4)+1)*1048576*4 +#ifdef SHMALIGNEDSIZE +# define SHMSIZE (sizeof(SHM_t)/(SHMALIGNEDSIZE)+1)*SHMALIGNEDSIZE #else # define SHMSIZE (sizeof(SHM_t)) #endif |