Sync with OpenBSD's uvm_extern.h changes

This commit is contained in:
Jasper Lievisse Adriaanse
2014-11-18 19:33:38 +01:00
parent b7edd1542e
commit 057dcf77d6

View File

@@ -280,11 +280,11 @@ glibtop_get_proc_map_p (glibtop *server, glibtop_proc_map *buf,
mentry->perm = (guint64) 0;
if (entry->protection & VM_PROT_READ)
if (entry->protection & PROT_READ)
mentry->perm |= GLIBTOP_MAP_PERM_READ;
if (entry->protection & VM_PROT_WRITE)
if (entry->protection & PROT_WRITE)
mentry->perm |= GLIBTOP_MAP_PERM_WRITE;
if (entry->protection & VM_PROT_EXECUTE)
if (entry->protection & PROT_EXECUTE)
mentry->perm |= GLIBTOP_MAP_PERM_EXECUTE;
}