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

Fix mac build by including errno.h #5323

Merged
merged 1 commit into from
Mar 11, 2021

Conversation

bzbarsky-apple
Copy link
Contributor

#5228 is using
errno but not including the header.

Problem

Build fails due to missing include.

Summary of Changes

Include the header.

project-chip#5228 is using
errno but not including the header.
@bzbarsky-apple bzbarsky-apple added the hotfix urgent fix needed, can bypass review label Mar 11, 2021
@@ -17,6 +17,7 @@

#include <stdio.h>
#include <stdlib.h>
#include <sys/errno.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm. "man errno" was claiming <sys/errno.h> at least on Mac, but it looks like just <errno.h> works. I'll do a followup to adjust to that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mspang mspang merged commit 70449a4 into project-chip:master Mar 11, 2021
@bzbarsky-apple bzbarsky-apple deleted the fix-mac-build branch March 11, 2021 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples hotfix urgent fix needed, can bypass review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants