Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace references to drand48_r family of functions for portability #503

Merged
merged 1 commit into from
Jul 31, 2018
Merged

Replace references to drand48_r family of functions for portability #503

merged 1 commit into from
Jul 31, 2018

Conversation

safayetahmedatge
Copy link
Contributor

srand48_r, lrand48_r, and drand48_data are GNU extensions and are not portable.

This PR replaces references to these functions and data structure with
functionality documented in the drand48 man page. The drand48 functionality
is a part of POSIX.

Addresses issue #500

srand48_r, lrand48_r, and drand48_data are GNU extensions and are not portable.

This commit replaces references to these functions and data structure with
functionality documented in the drand48 man page. The drand48 functionality
is a part of POSIX.

Signed-off-by: Safayet N Ahmed <Safayet.Ahmed@ge.com>
@safayetahmedatge
Copy link
Contributor Author

Along with PR #502 this PR allows tpm2-abrmd to compile successfully with musl libc.

This could address issue #237 as well.

@flihp
Copy link
Contributor

flihp commented Jul 19, 2018

This is great @safayetahmedatge. I tagged a release candidate for a bugfix release last night (2.0.1-rc0). I will queue this up for merging into master after this release is complete. This work will end up in the next minor version release (2.1.0).

@flihp flihp merged commit 23a59de into tpm2-software:master Jul 31, 2018
@flihp flihp mentioned this pull request Aug 7, 2018
bluca added a commit to bluca/meta-secure-core that referenced this pull request Feb 26, 2019
Several bug fixes were merged in 2.0.1 and 2.0.3, including the
following PRs that fix building tpm2-abrmd with the musl C library:

tpm2-software/tpm2-abrmd#502
tpm2-software/tpm2-abrmd#503

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
jiazhang0 pushed a commit to jiazhang0/meta-secure-core that referenced this pull request Feb 26, 2019
Several bug fixes were merged in 2.0.1 and 2.0.3, including the
following PRs that fix building tpm2-abrmd with the musl C library:

tpm2-software/tpm2-abrmd#502
tpm2-software/tpm2-abrmd#503

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
parr0tr1ver pushed a commit to parr0tr1ver/meta-secure-core that referenced this pull request Sep 15, 2020
Several bug fixes were merged in 2.0.1 and 2.0.3, including the
following PRs that fix building tpm2-abrmd with the musl C library:

tpm2-software/tpm2-abrmd#502
tpm2-software/tpm2-abrmd#503

Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants