Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
posix: sys: sysconf: Unconditionally define POSIX macros
The POSIX macros ATEXIT_MAX, PAGE_SIZE, and PAGESIZE (queriable through sysconf()) were conditionally defined only if an existing definition did not already exist. These should be defined unconditionally in their header to ensure they get the correct values. If these macros are defined elsewhere with a different meaning, that's a problem. There was an issue where PAGESIZE was already defined with a different meaning. See zephyrproject-rtos#74623 and zephyrproject-rtos#74428. This commit defines ATEXIT_MAX, PAGE_SIZE, and PAGESIZE unconditionally. Signed-off-by: Ben Marsh <ben.marsh@helvar.com>
- Loading branch information