[libgtop] Sync with OpenBSD's uvm_extern.h changes



commit 057dcf77d63700b97f5c146cb35b1026f516eaec
Author: Jasper Lievisse Adriaanse <jasper humppa nl>
Date:   Tue Nov 18 19:33:38 2014 +0100

    Sync with OpenBSD's uvm_extern.h changes

 sysdeps/openbsd/procmap.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/sysdeps/openbsd/procmap.c b/sysdeps/openbsd/procmap.c
index 8bc67da..f94ddc0 100644
--- a/sysdeps/openbsd/procmap.c
+++ b/sysdeps/openbsd/procmap.c
@@ -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;
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]