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

No O_DIRECTORY on osx #19

Closed
mbucc opened this issue Sep 3, 2016 · 1 comment
Closed

No O_DIRECTORY on osx #19

mbucc opened this issue Sep 3, 2016 · 1 comment

Comments

@mbucc
Copy link

mbucc commented Sep 3, 2016

Just use O_RDONLY? (That's what libressl did: libressl/openbsd#23)

c99    -c -o rsam.o rsam.c
rsam.c:31:5: warning: implicit declaration of function 'unlinkat' is invalid in C99 [-Wimplicit-function-declaration]
    unlinkat(home, ".sam.fifo", 0);
    ^
rsam.c:49:32: error: use of undeclared identifier 'O_DIRECTORY'
    home = open(pwent->pw_dir, O_DIRECTORY | O_RDONLY);
~/src/sam$ uname -rsp
Darwin 13.4.0 i386
@deadpixi
Copy link
Owner

deadpixi commented Sep 4, 2016

Closing this in favor of #20, which we can use to track all of the building issues on Mac OS X.

@deadpixi deadpixi closed this as completed Sep 4, 2016
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