Browse files

wrapper: 10.5 does not have RTLD_SELF

Mac OS X 10.5 only has RTLD_NEXT and RTLD_DEFAULT. So, switch to
NEXT for now.

For what it is worth, I actually noticed this problem on 10.4.
I checked the manpages online and the 10.5 manpage only mentions
SELF and DEFAULT (same as 10.4). The 10.4 status may or may not
matter in the long run since I still do not have a way of
"reattaching" on 10.4.
  • Loading branch information...
1 parent da7aad3 commit 30dc32959051346e83544001c2e55689cc2389c3 @ChrisJohnsen committed Mar 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 user-session-wrapper.c
@@ -47,7 +47,7 @@ int main(int argc, char *argv[]) {
const char fn[] = "_vprocmgr_move_subset_to_user";
void *f;
- if (!(f = dlsym(RTLD_SELF, fn)))
+ if (!(f = dlsym(RTLD_NEXT, fn)))
die(2, "unable to find %s: %s", fn, dlerror());
void *r;

0 comments on commit 30dc329

Please sign in to comment.