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

RTLD_DEFAULT not NULL on osx #11

Closed
dodoma opened this issue Mar 22, 2017 · 3 comments
Closed

RTLD_DEFAULT not NULL on osx #11

dodoma opened this issue Mar 22, 2017 · 3 comments
Assignees

Comments

@dodoma
Copy link

dodoma commented Mar 22, 2017

Just a remind, mjs ffi dlsym can't resolve funciton on mac osx.
After modify these lines in mjs/ffi.c , turns ok.

#ifndef RTLD_DEFAULT
#if defined(__APPLE__)
#define RTLD_DEFAULT ((void *) -2)
#else
#define RTLD_DEFAULT NULL
#endif
#endif
@cpq
Copy link
Member

cpq commented Mar 23, 2017

does adding -D_DARWIN_C_SOURCE to the compilation also work?

@cpq
Copy link
Member

cpq commented Mar 23, 2017

@dimonomid please integrate

@dodoma
Copy link
Author

dodoma commented Mar 23, 2017

not use -D_DARWIN_C_SOURCE yet, I'll try later.

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

3 participants