Skip to content

Compiling on OS X #1

Description

@audionerd

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions