Mercurial > emacs
annotate src/getpagesize.h @ 15013:aad88afa6a0c libc-960413 libc-960414 libc-960415 libc-960416 libc-960417 libc-960418 libc-960419 libc-960420 libc-960421 libc-960422 libc-960423 libc-960424 libc-960425 libc-960426 libc-960427 libc-960428 libc-960429 libc-960430 libc-960501 libc-960502 libc-960503 libc-960504 libc-960505 libc-960506 libc-960507 libc-960508 libc-960509 libc-960510 libc-960511 libc-960512 libc-960513 libc-960514 libc-960515 libc-960516 libc-960517 libc-960518 libc-960519 libc-960520
* config.guess: Combine two OSF1 rules.
Also recognize field test versions. From mjr@zk3.dec.com.
* config.guess (dgux): Use /usr/bin/uname rather than uname,
because GNU uname does not support -p. From pmr@pajato.com.
author | Per Bothner <bothner@cygnus.com> |
---|---|
date | Sat, 13 Apr 1996 00:06:54 +0000 |
parents | 44ebc50db2c5 |
children | ae726fd5403b |
rev | line source |
---|---|
4356 | 1 /* Emulate getpagesize on systems that lack it. */ |
2 | |
3 #ifndef HAVE_GETPAGESIZE | |
4 | |
5 #ifdef VMS | |
6 #define getpagesize() 512 | |
7 #endif | |
8 | |
9 #ifdef HAVE_UNISTD_H | |
10 #include <unistd.h> | |
11 #endif | |
12 | |
13 #ifdef _SC_PAGESIZE | |
14 #define getpagesize() sysconf(_SC_PAGESIZE) | |
15 #else | |
16 | |
17 #include <sys/param.h> | |
18 | |
19 #ifdef EXEC_PAGESIZE | |
20 #define getpagesize() EXEC_PAGESIZE | |
21 #else | |
22 #ifdef NBPG | |
23 #define getpagesize() NBPG * CLSIZE | |
24 #ifndef CLSIZE | |
25 #define CLSIZE 1 | |
26 #endif /* no CLSIZE */ | |
27 #else /* no NBPG */ | |
28 #ifdef NBPC | |
29 #define getpagesize() NBPC | |
9421 | 30 #else /* no NBPC */ |
31 #ifdef PAGESIZE | |
32 #define getpagesize() PAGESIZE | |
33 #endif | |
4356 | 34 #endif /* NBPC */ |
35 #endif /* no NBPG */ | |
36 #endif /* no EXEC_PAGESIZE */ | |
37 #endif /* no _SC_PAGESIZE */ | |
38 | |
39 #endif /* not HAVE_GETPAGESIZE */ |