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

Enable STDC ifdef for zip.c for Spack builds #888

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

mathomp4
Copy link
Member

This is a "safe" fix for #887 in that in non-Baselibs builds, we enable the STDC macro which enables code in zip.c:

#include <stdio.h>
#include "zlib.h"
#ifdef STDC
# include <string.h>
# include <stdlib.h>
#endif

so that Spack can find stdlib.h.

As this does not affect Baselibs builds, this is trivially zero-diff.

@mathomp4 mathomp4 added the 0 diff The changes in this pull request have verified to be zero-diff with the target branch. label Jan 25, 2024
@mathomp4 mathomp4 self-assigned this Jan 25, 2024
@mathomp4 mathomp4 requested a review from a team as a code owner January 25, 2024 18:16
@mathomp4 mathomp4 changed the title Enable STDC macro for zip.c for Spack builds Enable STDC ifdef for zip.c for Spack builds Jan 25, 2024
@tclune tclune merged commit 095590e into develop Jan 25, 2024
13 checks passed
@tclune tclune deleted the bugfix/mathomp4/fix-zip-spack branch January 25, 2024 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 diff The changes in this pull request have verified to be zero-diff with the target branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants