Skip to content

dialogs: fix compilation when serial is not available #534

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
Apr 3, 2025

Conversation

nunojsa
Copy link
Contributor

@nunojsa nunojsa commented Apr 3, 2025

In commit 8d4b9f0 ("dialogs: improve serial handling"), we dropped the '#ifdef' but that will break compilation in case libserial is not installed as it's used functions won't be available. Fix it by reintroduced the defined set by cmake.

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have followed the coding standards and guidelines
  • I have conducted a self-review of my own code changes
  • I have commented new code, particulary complex or unclear areas
  • I have checked in CI output that no new warnings/errors got introduced
  • I have updated documentation accordingly (GitHub Pages, READMEs, etc)

In commit 8d4b9f0 ("dialogs: improve serial handling"), we dropped the
'#ifdef' but that will break compilation in case libserial is not
installed as it's used functions won't be available. Fix it by
reintroduced the defined set by cmake.

Signed-off-by: Nuno Sa <[email protected]>
@dNechita dNechita merged commit a01a081 into libiio-v1-support Apr 3, 2025
2 of 4 checks passed
@dNechita dNechita deleted the fix/libiiov1-serial branch April 3, 2025 20:37
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