summaryrefslogtreecommitdiffstats
path: root/include/pttstruct.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pttstruct.h')
-rw-r--r--include/pttstruct.h4
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