home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / binutils-1.8.x.tar.gz / binutils-1.8.x.tar / binutils / getpagesize.h < prev    next >
C/C++ Source or Header  |  1986-06-01  |  416b  |  26 lines

  1. #ifdef BSD
  2. #ifndef BSD4_1
  3. #define HAVE_GETPAGESIZE
  4. #endif
  5. #endif
  6.  
  7. #ifndef HAVE_GETPAGESIZE
  8.  
  9. #include <sys/param.h>
  10.  
  11. #ifdef EXEC_PAGESIZE
  12. #define getpagesize() EXEC_PAGESIZE
  13. #else
  14. #ifdef NBPG
  15. #define getpagesize() NBPG * CLSIZE
  16. #ifndef CLSIZE
  17. #define CLSIZE 1
  18. #endif /* no CLSIZE */
  19. #else /* no NBPG */
  20. #define getpagesize() NBPC
  21. #endif /* no NBPG */
  22. #endif /* no EXEC_PAGESIZE */
  23.  
  24. #endif /* not HAVE_GETPAGESIZE */
  25.  
  26.