Solaris 2.5 & 2.5.1 portability fixes, based on patches from Steve Murphy
* glibtop_machine.h, open.c, procargs.c, proclist.c, procmap.c: Solaris 2.5 & 2.5.1 portability fixes, based on patches from Steve Murphy <murf@e-tools.com>.
This commit is contained in:
@@ -205,6 +205,8 @@ glibtop_open_s (glibtop *server, const char *program_name,
|
||||
|
||||
/* Now let's have a bit of magic dust... */
|
||||
|
||||
#if GLIBTOP_SOLARIS_RELEASE >= 560
|
||||
|
||||
dl = dlopen("/usr/lib/libproc.so", RTLD_LAZY);
|
||||
server->machine.libproc = dl;
|
||||
if(dl)
|
||||
@@ -226,5 +228,6 @@ glibtop_open_s (glibtop *server, const char *program_name,
|
||||
server->machine.pgrab = NULL;
|
||||
server->machine.pfree = NULL;
|
||||
}
|
||||
#endif
|
||||
server->machine.me = getpid();
|
||||
}
|
||||
|
Reference in New Issue
Block a user