This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
freebsd: Replace FreeBSD_11/12 with __FreeBSD_version conditions
- Loading branch information
Showing
6 changed files
with
40 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* D header file for FreeBSD | ||
* | ||
* Authors: Iain Buclaw | ||
*/ | ||
module core.sys.freebsd.config; | ||
|
||
version (FreeBSD): | ||
|
||
public import core.sys.posix.config; | ||
|
||
// __FreeBSD_version numbers are documented in the Porter's Handbook. | ||
// https://svnweb.freebsd.org/base/head/sys/sys/param.h?view=markup | ||
version (FreeBSD_12) enum __FreeBSD_version = 1202000; | ||
else version (FreeBSD_11) enum __FreeBSD_version = 1104000; | ||
else version (FreeBSD_10) enum __FreeBSD_version = 1004000; | ||
else version (FreeBSD_9) enum __FreeBSD_version = 903000; | ||
else version (FreeBSD_8) enum __FreeBSD_version = 804000; | ||
else static assert(false "Unsupported version of FreeBSD"); | ||
|
||
// First version of FreeBSD to support 64-bit stat buffer. | ||
enum INO64_FIRST = 1200031; |
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 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 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