comparison src/alloc.c @ 69355:a685fca1ccb6

(USE_POSIX_MEMALIGN): Fix last change.
author Kim F. Storm <storm@cua.dk>
date Fri, 10 Mar 2006 08:10:24 +0000
parents 2c8e608f28e7
children 2d844bbbccd4 0cdee8b991e1 494bf720eaf0
comparison
equal deleted inserted replaced
69354:c8cdda878c00 69355:a685fca1ccb6
884 /* BLOCK_BYTES and guarantees they are aligned on a BLOCK_ALIGN boundary. */ 884 /* BLOCK_BYTES and guarantees they are aligned on a BLOCK_ALIGN boundary. */
885 885
886 /* Use posix_memalloc if the system has it and we're using the system's 886 /* Use posix_memalloc if the system has it and we're using the system's
887 malloc (because our gmalloc.c routines don't have posix_memalign although 887 malloc (because our gmalloc.c routines don't have posix_memalign although
888 its memalloc could be used). */ 888 its memalloc could be used). */
889 #define USE_POSIX_MEMALIGN (HAVE_POSIX_MEMALIGN && SYSTEM_MALLOC) 889 #if defined (HAVE_POSIX_MEMALIGN) && defined (SYSTEM_MALLOC)
890 #define USE_POSIX_MEMALIGN 1
891 #endif
890 892
891 /* BLOCK_ALIGN has to be a power of 2. */ 893 /* BLOCK_ALIGN has to be a power of 2. */
892 #define BLOCK_ALIGN (1 << 10) 894 #define BLOCK_ALIGN (1 << 10)
893 895
894 /* Padding to leave at the end of a malloc'd block. This is to give 896 /* Padding to leave at the end of a malloc'd block. This is to give