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.
Merge pull request #3271 from ibuclaw/freebsd/12
Issue 17596: Version bindings so that they work for both FreeBSD 11 and 12 merged-on-behalf-of: Mathias LANG <pro.mathias.lang@gmail.com>
- Loading branch information
Showing
8 changed files
with
233 additions
and
67 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 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,24 @@ | ||
/** | ||
* D header file for FreeBSD | ||
* | ||
* Authors: Iain Buclaw | ||
*/ | ||
module core.sys.freebsd.config; | ||
|
||
version (FreeBSD): | ||
|
||
public import core.sys.posix.config; | ||
|
||
// https://svnweb.freebsd.org/base/head/sys/sys/param.h?view=markup | ||
// __FreeBSD_version numbers are documented in the Porter's Handbook. | ||
// NOTE: When adding newer versions of FreeBSD, verify all current versioned | ||
// bindings are still compatible with the release. | ||
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
Oops, something went wrong.