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

oils-for-unix build failures on OpenBSD due to stdin macro conflict #1522

Closed
andychu opened this issue Mar 13, 2023 · 1 comment
Closed

oils-for-unix build failures on OpenBSD due to stdin macro conflict #1522

andychu opened this issue Mar 13, 2023 · 1 comment

Comments

@andychu
Copy link
Contributor

andychu commented Mar 13, 2023

And there are multiple errors caused by stdin/stdout/stderr being macros:

_gen/bin/oils_for_unix.mycpp.cc:5888:22: error: '__sF' declared as array of references of type 'mylib::LineReader *(&)'
  mylib::LineReader* stdin;
                     ^
/usr/include/stdio.h:197:21: note: expanded from macro 'stdin'
#define stdin   (&__sF[0])
                      ^
_gen/bin/oils_for_unix.mycpp.cc:5896:37: error: expected identifier
         | maskbit_v(offsetof(Read, stdin));
                                    ^
/usr/include/stdio.h:197:15: note: expanded from macro 'stdin'
#define stdin   (&__sF[0])
                ^
...etc...
@andychu
Copy link
Contributor Author

andychu commented May 13, 2023

@andychu andychu closed this as completed May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant