We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
AVRemote won't compile on OS X out of the box.
First off, there's an issue with miniupnp in which it needs _DARWIN_C_SOURCE defined or it won't compile.
_DARWIN_C_SOURCE
Then, apparently, OS X doesn't know about POLLRDHUP, which causes an error on line 194 of src/avremote.c:
POLLRDHUP
src/avremote.c
fds[0].events = POLLRDHUP; // needs _GNU_SOURCE
I was able to compile (with warnings) using this:
./configure CFLAGS='-D_DARWIN_C_SOURCE -DPOLLRDHUP=0x2000'
A better solution for this would probably be explicit defines, e.g.:
#ifdef __APPLE__ #define _DARWIN_C_SOURCE #endif #ifndef POLLRDHUP #define POLLRDHUP 0x2000 #endif
The text was updated successfully, but these errors were encountered:
stumbled into this just now. included your fix on the repository we have on code.dyne.org thanks!
Sorry, something went wrong.
jaromil
No branches or pull requests
AVRemote won't compile on OS X out of the box.
First off, there's an issue with miniupnp in which it needs
_DARWIN_C_SOURCE
defined or it won't compile.Then, apparently, OS X doesn't know about
POLLRDHUP
, which causes an error on line 194 ofsrc/avremote.c
:I was able to compile (with warnings) using this:
A better solution for this would probably be explicit defines, e.g.:
The text was updated successfully, but these errors were encountered: