-
Notifications
You must be signed in to change notification settings - Fork 279
internal/dlsym: Define _GNU_SOURCE for RTLD_DEFAULT #1026
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
Conversation
e3c57a0 to
603f764
Compare
|
Do we already use non-POSIX extensions elsewhere? Then I guess this shouldn't hurt. Otherwise the former approach is probably more portable. Not sure about Darwin+clang, if it emulates the GNU stuff. |
cephfs defines it but rbd explicitly undefines it. Provided that this change is internal I think we can use it and whoever(packages) doesn't want can undefine as we saw with rbd.
I don't know. |
|
nixpanic
left a comment
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.
Looks good to me, thanks!
|
@ansiwen PTAL. |
|
@Mergifyio rebase |
✅ Branch has been successfully rebased |
603f764 to
403aad1
Compare
|
@Mergifyio rebase |
man dlsym(3) says the following: . . . The _GNU_SOURCE feature test macro must be defined in order to obtain the definitions of RTLD_DEFAULT and RTLD_NEXT from <dlfcn.h>. . . . Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
✅ Branch has been successfully rebased |
403aad1 to
83dac0d
Compare
|
LGTM, manually checked on darwin. |
man dlsym(3) says the following: