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
Compile fails on musl libc (Subprocess.h) #310
Comments
As a note, MSVC defines |
@jprjr |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there -
I'm working on getting hhvm running on a musl-based Linux distro, and I'm getting an error when compiling folly:
I believe the error is that
stdin
,stdout
, andstderr
are all macros which are being expanded.glibc defines
stdin stdout stderr
as:musl libc defines them as:
So when compiling, lines 361-363 are expanded to:
Which leads to the above error.
I believe ISO C defines that
stdin
,stdout
, andstderr
are supposed to be macros. LLVM had some similar problem here: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130506/173690.html - this post describes whatstdin
stdout
andstderr
are supposed to be better than I could.I'm not sure what the right way to fix this is - maybe something like
#undef stdin
(etc) towards the beginning of the code, then redefine it towards the end?The text was updated successfully, but these errors were encountered: