8000 libstatgrab: only use one configure test for 0.90 API change by vincentbernat · Pull Request #806 · collectd/collectd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

libstatgrab: only use one configure test for 0.90 API change #806

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

Merged
merged 1 commit into from
Nov 17, 2014

Conversation

vincentbernat
Copy link
Contributor

Previously, each API change was tested in configure.ac. Some of the
tests are relying on signature checks and would need to have -Werror
flag enabled to make them work. This is quite fragile.

Instead, we assume that if sg_init() requires an argument, we must use
the 0.90 API.

Fixes: #795

This is one possible fix for the problem introduced in c963d35

Previously, each API change was tested in configure.ac. Some of the
tests are relying on signature checks and would need to have -Werror
flag enabled to make them work. This is quite fragile.

Instead, we assume that if `sg_init()` requires an argument, we must use
the 0.90 API.

Fixes: collectd#795
vincentbernat referenced this pull request in vincentbernat/collectd Nov 17, 2014
… 0.9

In those versions, `sg_get_disk_io_stats()` need to be invoked a pointer
to size_t instead of pointer to int. Such a requirement is detected at
configure-time.

Fixes: collectd#445
@pyr
Copy link
Member
pyr commented Nov 17, 2014

great to see configure.ac losing weight!

pyr added a commit that referenced this pull request Nov 17, 2014
libstatgrab: only use one configure test for 0.90 API change
@pyr pyr merged commit e6d70fa into collectd:master Nov 17, 2014
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.

2 participants
0