]> git.ipfire.org Git - thirdparty/openssl.git/commit
Work on ANSI C compatibility: modifying the github workflow
authorRichard Levitte <levitte@openssl.org>
Wed, 17 Apr 2024 11:35:51 +0000 (13:35 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 22 May 2024 07:59:31 +0000 (09:59 +0200)
commit34f35473c06a91b82ce65cae952405a1bdb04dac
treef58b3d7da2f00b63c817f6818023ab15a17384ff
parenta192b2439c0207ce1b04ba6137329b68f9e23680
Work on ANSI C compatibility: modifying the github workflow

The github workflow that attempts to check that OpenSSL ANSI C compatible
defined '_DEFAULT_SOURCE', which effectively turns gcc and clang into a C99
compiler...  perhaps not with regard to pure language features, but it enables
a few too many types and functions that aren't defined in ANSI C library, or
in some cases, in any C language level library.

Instead of '_DEFAULT_SOURCE', this modification defines '_XOPEN_SOURCE=1' and
'_POSIX_SOURCE=200809L', to enable the use of 'timezone', 'ssize_t' and 'strdup()'.

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24173)
.github/workflows/ci.yml