Skip to content

Fix glibc warning about _BSD_SOURCE and redefined _GNU_SOURCE (fix #1978)#2631

Merged
itchyny merged 1 commit intojqlang:masterfrom
itchyny:fix-glibc-warning-bsd-source
Jun 26, 2023
Merged

Fix glibc warning about _BSD_SOURCE and redefined _GNU_SOURCE (fix #1978)#2631
itchyny merged 1 commit intojqlang:masterfrom
itchyny:fix-glibc-warning-bsd-source

Conversation

@itchyny
Copy link
Contributor

@itchyny itchyny commented Jun 26, 2023

This PR fixes #1978, suppresses glibs warnings. Since glibc 2.19, _GNU_SOURCE implies _DEFAULT_SOURCE as well.

@itchyny itchyny added the build label Jun 26, 2023
@itchyny itchyny self-assigned this Jun 26, 2023
@itchyny itchyny added this to the 1.7 release milestone Jun 26, 2023
@itchyny
Copy link
Contributor Author

itchyny commented Jun 26, 2023

Thank you.

@itchyny itchyny merged commit e468eaa into jqlang:master Jun 26, 2023
itchyny added a commit to itchyny/jq that referenced this pull request Feb 27, 2025
On OpenBSD, some prototypes are hidden behind `_BSD_SOURCE`.
Defining this variable fixes jqlang#3252, and also fixes jqlang#3276.
This can be seen as a regression of jqlang#2631.
itchyny added a commit to itchyny/jq that referenced this pull request Mar 4, 2025
On OpenBSD, some prototypes are hidden behind `_BSD_SOURCE`.
Defining this variable fixes jqlang#3252, and also fixes jqlang#3276.
This can be seen as a regression of jqlang#2631.
itchyny added a commit that referenced this pull request Mar 4, 2025
On OpenBSD, some prototypes are hidden behind `_BSD_SOURCE`.
Defining this variable fixes #3252, and also fixes #3276.
This can be seen as a regression of #2631.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

glibc warning: _BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE

3 participants