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

test: Exclude sys/sysmacros.h on FreeBSD #2181

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

diizzyy
Copy link

@diizzyy diizzyy commented Jun 6, 2023

Fixes build issue on FreeBSD

Fixes built issue on FreeBSD
@@ -28,8 +28,11 @@
#include <string.h>
#include <errno.h>
#ifndef __APPLE__
#elif
#ifndef __FreeBSD__
Copy link
Member

Choose a reason for hiding this comment

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

I am skeptical of code that CI does not exercise which will rot over time. Is there some other way to approach this?

Copy link
Author

@diizzyy diizzyy Jun 6, 2023

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Could we call system to invoke mknod instead?

Copy link
Member

Choose a reason for hiding this comment

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

Thinking about this some more I think the #ifdef is fine. But CI is broken so we cannot merge this.

Copy link
Member

Choose a reason for hiding this comment

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

@diizzyy Could you move forward with this PR?

Copy link
Author

Choose a reason for hiding this comment

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

I'll try to have a look again next week, unfortunately I don't have a Linux box available so I'm not sure why it fails.

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.

None yet

2 participants