Commit 3de13334 by Jim Wilson

(_SC_PAGE_SIZE): Define to _SC_PAGESIZE if that exists.

From-SVN: r5114
parent 302484ff
......@@ -61,6 +61,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/param.h>
#include <unistd.h>
/* In at least 5.0 and 5.01, there is no _SC_PAGE_SIZE macro, only a
_SC_PAGESIZE macro. */
#ifdef _SC_PAGESIZE
#define _SC_PAGE_SIZE _SC_PAGESIZE
#endif
#ifdef _SC_PAGE_SIZE
#define getpagesize() sysconf(_SC_PAGE_SIZE)
......
......@@ -62,6 +62,12 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifdef L_trampoline
#include <unistd.h>
/* In at least 5.0 and 5.01, there is no _SC_PAGE_SIZE macro, only a
_SC_PAGESIZE macro. */
#ifdef _SC_PAGESIZE
#define _SC_PAGE_SIZE _SC_PAGESIZE
#endif
#define getpagesize() sysconf(_SC_PAGE_SIZE)
#endif /* L_trampoline */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment