ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/tools.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/tools.c (file contents):
Revision 1.31 by tdb, Mon Feb 16 14:55:32 2004 UTC vs.
Revision 1.32 by ats, Wed Mar 17 11:58:18 2004 UTC

# Line 466 | Line 466 | int statgrab_init(){
466                  if (kvmd == NULL) return 1;
467          }
468   #endif
469 + #if defined(NETBSD) || defined(OPENBSD)
470 +        {
471 +                /* This should always succeed, but it seems that on some
472 +                 * versions of NetBSD the first call to get_uvmexp will return
473 +                 * a non-filled-in structure; this is a workaround for that.
474 +                 */
475 +                struct uvmexp *uvm = get_uvmexp();
476 +                if (uvm == NULL) return 1;
477 +        }
478 + #endif
479   #ifdef SOLARIS
480          /* On solaris 7, this will fail if you are not root. But, everything
481           * will still work, just no disk mappings. So we will ignore the exit

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines