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

Compiling on OS X #1

Open
audionerd opened this issue Sep 1, 2011 · 1 comment
Open

Compiling on OS X #1

audionerd opened this issue Sep 1, 2011 · 1 comment
Assignees

Comments

@audionerd
Copy link

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 of 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
@ghost ghost assigned jaromil Mar 6, 2013
@jaromil
Copy link
Member

jaromil commented Mar 6, 2013

stumbled into this just now. included your fix on the repository we have on code.dyne.org
thanks!

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

No branches or pull requests

2 participants