diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index be80410176d..c64c03e1706 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -1087,7 +1087,11 @@ lisp_free (void *block) | |||
| 1087 | BLOCK_BYTES and guarantees they are aligned on a BLOCK_ALIGN boundary. */ | 1087 | BLOCK_BYTES and guarantees they are aligned on a BLOCK_ALIGN boundary. */ |
| 1088 | 1088 | ||
| 1089 | /* Byte alignment of storage blocks. */ | 1089 | /* Byte alignment of storage blocks. */ |
| 1090 | #define BLOCK_ALIGN (1 << 15) | 1090 | #ifdef HAVE_UNEXEC |
| 1091 | # define BLOCK_ALIGN (1 << 10) | ||
| 1092 | #else /* !HAVE_UNEXEC */ | ||
| 1093 | # define BLOCK_ALIGN (1 << 15) | ||
| 1094 | #endif | ||
| 1091 | verify (POWER_OF_2 (BLOCK_ALIGN)); | 1095 | verify (POWER_OF_2 (BLOCK_ALIGN)); |
| 1092 | 1096 | ||
| 1093 | /* Use aligned_alloc if it or a simple substitute is available. | 1097 | /* Use aligned_alloc if it or a simple substitute is available. |