mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-16 03:43:50 -07:00
Removing getpagesize (which is a bsdism)
Copied from Perforce Change: 17624 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
899490b7be
commit
8038308e4d
1 changed files with 8 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/* impl.c.vmso: VIRTUAL MEMORY MAPPING FOR SOLARIS 2.x
|
||||
*
|
||||
* $HopeName: MMsrc!vmso.c(trunk.4) $
|
||||
* $HopeName: MMsrc!vmso.c(trunk.5) $
|
||||
* Copyright (C) 1995 Harlequin Group, all rights reserved
|
||||
*
|
||||
* Design: design.mps.vm
|
||||
|
|
@ -41,13 +41,18 @@
|
|||
#error "vmso.c compiled with VM_RM set"
|
||||
#endif /* VM_RM */
|
||||
|
||||
/* Open sesame magic */
|
||||
#define _POSIX_SOURCE
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/mman.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <sys/errno.h>
|
||||
/* unistd for _SC_PAGESIZE */
|
||||
#include <unistd.h>
|
||||
|
||||
SRCID(vmso, "$HopeName: MMsrc!vmso.c(trunk.4) $");
|
||||
SRCID(vmso, "$HopeName: MMsrc!vmso.c(trunk.5) $");
|
||||
|
||||
|
||||
/* Fix up unprototyped system calls. */
|
||||
|
|
@ -56,7 +61,6 @@ SRCID(vmso, "$HopeName: MMsrc!vmso.c(trunk.4) $");
|
|||
|
||||
extern int close(int fd);
|
||||
extern int munmap(caddr_t addr, size_t len);
|
||||
extern int getpagesize(void);
|
||||
|
||||
#define SpaceVM(space) (&(space)->arenaStruct.vmStruct)
|
||||
|
||||
|
|
@ -64,7 +68,7 @@ Align VMAlign(void)
|
|||
{
|
||||
Align align;
|
||||
|
||||
align = (Align)getpagesize();
|
||||
align = (Align)sysconf(_SC_PAGESIZE);
|
||||
AVER(SizeIsP2(align));
|
||||
|
||||
return align;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue