gmalloc.c: #if 0 out !HAVE_GETPAGESIZE code.
* gmalloc.c [!HAVE_GETPAGESIZE]: Try to figure out the pagesize.
This commit is contained in:
parent
1dcabdbc6a
commit
2d3b429559
1 changed files with 5 additions and 0 deletions
|
@ -1093,6 +1093,10 @@ DEFUN(__default_morecore, (size), ptrdiff_t size)
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#endif /* __ONEFILE */
|
#endif /* __ONEFILE */
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
/* On SunOS 4.1.1, <sys/param.h> typedefs size_t, which is bad since
|
||||||
|
we typedef it above. Maybe it's better just to have people compile
|
||||||
|
-Dgetpagesize()=4096. */
|
||||||
/* Deal with page size. */
|
/* Deal with page size. */
|
||||||
#ifdef BSD
|
#ifdef BSD
|
||||||
#ifndef BSD4_1
|
#ifndef BSD4_1
|
||||||
|
@ -1125,6 +1129,7 @@ DEFUN_VOID(__getpagesize)
|
||||||
return PAGESIZE;
|
return PAGESIZE;
|
||||||
}
|
}
|
||||||
#endif /* not HAVE_GETPAGESIZE */
|
#endif /* not HAVE_GETPAGESIZE */
|
||||||
|
#endif /* 0 */
|
||||||
|
|
||||||
extern size_t EXFUN(__getpagesize, (NOARGS));
|
extern size_t EXFUN(__getpagesize, (NOARGS));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue