diff options
Diffstat (limited to 'include/glibtop/swap.h')
-rw-r--r-- | include/glibtop/swap.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/glibtop/swap.h b/include/glibtop/swap.h index dd42ac30..fb438413 100644 --- a/include/glibtop/swap.h +++ b/include/glibtop/swap.h @@ -45,7 +45,18 @@ struct _glibtop_swap #define glibtop_get_swap(swap) glibtop_get_swap__r(glibtop_global_server, swap) -extern void glibtop_get_swap__r __P((glibtop *, glibtop_swap *)); +#if GLIBTOP_SUID_SWAP +#define glibtop_get_swap__r glibtop_get_swap__l +#else +#define glibtop_get_swap__r glibtop_get_swap__s +#endif + +#if GLIBTOP_SUID_SWAP +extern void glibtop_get_swap__l __P((glibtop *, glibtop_swap *)); +extern void glibtop_get_swap__p __P((glibtop *, glibtop_swap *)); +#else +extern void glibtop_get_swap__s __P((glibtop *, glibtop_swap *)); +#endif #ifdef HAVE_GUILE |