summaryrefslogtreecommitdiffstats
path: root/include/pttstruct.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/pttstruct.h')
-rw-r--r--include/pttstruct.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index ec740c2c..045de383 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -577,6 +577,12 @@ typedef struct {
#endif
} SHM_t;
+#ifdef USE_HUGETLB // 4MB aligned
+# define SHMSIZE (sizeof(SHM_t)/(1048576*4)+1)*1048576*4
+#else
+# define SHMSIZE (sizeof(SHM_t))
+#endif
+
typedef struct {
unsigned char oldlen; /* previous line length */
unsigned char len; /* current length of line */