about summary refs log tree commit diff
path: root/include/limits.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-03-10 17:47:14 -0500
committerRich Felker <dalias@aerifal.cx>2018-03-10 17:47:14 -0500
commitc9c2cd3e6955cb1d57b8be01d4b072bf44058762 (patch)
tree2e3db29bf8d6d5fd7f5aa23eb672808c4fecb831 /include/limits.h
parent0cf50581ec5f04feeaa77f2eb8b734a4b69ca8ed (diff)
downloadmusl-c9c2cd3e6955cb1d57b8be01d4b072bf44058762.tar.gz
musl-c9c2cd3e6955cb1d57b8be01d4b072bf44058762.tar.xz
musl-c9c2cd3e6955cb1d57b8be01d4b072bf44058762.zip
reverse definition dependency between PAGESIZE and PAGE_SIZE
PAGESIZE is actually the version defined in POSIX base, with PAGE_SIZE
being in the XSI option. use PAGESIZE as the underlying definition to
facilitate making exposure of PAGE_SIZE conditional.
Diffstat (limited to 'include/limits.h')
-rw-r--r--include/limits.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/limits.h b/include/limits.h
index f9805a1e..3e476093 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -40,8 +40,8 @@
  || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
 
 #define PIPE_BUF 4096
-#ifdef PAGE_SIZE
-#define PAGESIZE PAGE_SIZE
+#ifdef PAGESIZE
+#define PAGE_SIZE PAGESIZE
 #endif
 #define FILESIZEBITS 64
 #define NAME_MAX 255