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:
Drazen Kacar
1999-06-07 04:13:05 +00:00
parent e9baa3543e
commit 432adade05
6 changed files with 42 additions and 3 deletions

View File

@@ -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();
}