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
add support for looking up versioned functions re #889 #890
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests.
I wrote some tests in the meantime. They yet need to be excluded on platforms that don't support versioned symbols. Moreover I tried to build a test that uses similar symbols as shown in #889 . In case of
|
I'm pretty sure use of versions like that is non standard and they fixed it in Fuse 3. I think the test are sufficient for the expected use of versioned symbols via dlvsym and I can confirm that it works for the Fuse case as well. |
|
||
|
||
// ruby.h first to provide _GNU_SOURCE which gives us dlvsym if available | ||
#include <ruby.h> | ||
|
||
#include <sys/types.h> | ||
#include <stdio.h> | ||
#include <stdint.h> | ||
|
||
#if (defined(_WIN32) || defined(__WIN32__)) && !defined(__CYGWIN__) | ||
# include <winsock2.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
,m,,,,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what ^^ means but the alternative to this change in include order is to define _GNU_SOURCE specifically and accept that ruby.h generates a warning about it being redefined.
No description provided.