Browse Source

Don't enumerate every arch in the #if since all OpenBSD platforms use the same values for malloc_pageshift and malloc_minsize except for sparc

OPENBSD_2_4
millert 26 years ago
parent
commit
68f9effca8
1 changed files with 4 additions and 8 deletions
  1. +4
    -8
      src/lib/libc/stdlib/malloc.c

+ 4
- 8
src/lib/libc/stdlib/malloc.c View File

@ -8,7 +8,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char rcsid[] = "$OpenBSD: malloc.c,v 1.31 1998/06/28 06:30:34 rahnds Exp $";
static char rcsid[] = "$OpenBSD: malloc.c,v 1.32 1998/08/06 16:26:32 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@ -81,13 +81,9 @@ static char rcsid[] = "$OpenBSD: malloc.c,v 1.31 1998/06/28 06:30:34 rahnds Exp
# define malloc_minsize 16U
#endif /* __FOOCPU__ && __BAROS__ */
#ifdef __OpenBSD__
# if defined(__alpha__) || defined(__m68k__) || defined(__mips__) || \
defined(__i386__) || defined(__m88k__) || defined(__ns32k__) || \
defined(__vax__) || defined(__powerpc__)
# define malloc_pageshift (PGSHIFT)
# define malloc_minsize 16U
# endif /* __i386__ */
#if defined(__OpenBSD__) && !defined(__sparc__)
# define malloc_pageshift (PGSHIFT)
# define malloc_minsize 16U
#endif /* __OpenBSD__ */
#ifdef _THREAD_SAFE


Loading…
Cancel
Save