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

rocksdb: Define _GNU_SOURCE during fallocate CMake probe #2593

Merged
merged 1 commit into from Apr 17, 2023

Conversation

fweimer-rh
Copy link
Contributor

The glibc headers declare fallocate only if _GNU_SOURCE is defined. Without this change, the probe fails with C compilers which do not support implicit function declarations even if the system does in fact support the fallocate function.

Upstream rocksdb does not need this because the probe is run with the C++ compiler, and current g++ versions define _GNU_SOURCE automatically.

Related to:

@CLAassistant
Copy link

CLAassistant commented Apr 11, 2023

CLA assistant check
All committers have signed the CLA.

@an3l an3l requested a review from spetrunia April 14, 2023 09:11
The glibc headers declare fallocate only if _GNU_SOURCE is defined.
Without this change, the probe fails with C compilers which do not
support implicit function declarations even if the system does in
fact support the fallocate function.

Upstream rocksdb does not need this because the probe is run with the
C++ compiler, and current g++ versions define _GNU_SOURCE
automatically.
@grooverdan grooverdan changed the base branch from 11.1 to 10.4 April 17, 2023 05:11
@grooverdan grooverdan removed the request for review from spetrunia April 17, 2023 05:11
Copy link
Member

@grooverdan grooverdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Florian!

The linux/falloca.h header seemed unnecessary too.

@grooverdan grooverdan merged commit f575de3 into MariaDB:10.4 Apr 17, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants