summaryrefslogtreecommitdiff
path: root/include/glibtop/msg_limits.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/glibtop/msg_limits.h')
-rw-r--r--include/glibtop/msg_limits.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/glibtop/msg_limits.h b/include/glibtop/msg_limits.h
index a45b8ba7..9031f549 100644
--- a/include/glibtop/msg_limits.h
+++ b/include/glibtop/msg_limits.h
@@ -53,7 +53,18 @@ struct _glibtop_msg_limits
#define glibtop_get_msg_limits(msg) glibtop_get_msg_limits__r(glibtop_global_server, msg)
-extern void glibtop_get_msg_limits__r __P((glibtop *, glibtop_msg_limits *));
+#if GLIBTOP_SUID_MSG_LIMITS
+#define glibtop_get_msg_limits__r glibtop_get_msg_limits__l
+#else
+#define glibtop_get_msg_limits__r glibtop_get_msg_limits__s
+#endif
+
+#if GLIBTOP_SUID_MSG_LIMITS
+extern void glibtop_get_msg_limits__l __P((glibtop *, glibtop_msg_limits *));
+extern void glibtop_get_msg_limits__p __P((glibtop *, glibtop_msg_limits *));
+#else
+extern void glibtop_get_msg_limits__s __P((glibtop *, glibtop_msg_limits *));
+#endif
#ifdef HAVE_GUILE