Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make config/gen/platform/generic/sysmem.c more generic.
Include the two most likely methods (sysconf and sysctl) in the generic file, based on various #ifdef probes. This way, new systems are more likely to work without first needing their own sysmem.c file. If neither sysconf() nor sysctl() seems to work, assume a default of 512 MB. One could certainly argue for putting an error message here instead. Signed-off-by: Jonathan "Duke" Leto <jonathan@leto.net>
- Loading branch information
Showing
5 changed files
with
54 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.