summaryrefslogtreecommitdiff
path: root/prober/sniff_realtime_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'prober/sniff_realtime_lib.c')
-rw-r--r--prober/sniff_realtime_lib.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/prober/sniff_realtime_lib.c b/prober/sniff_realtime_lib.c
new file mode 100644
index 0000000..c0a15a4
--- /dev/null
+++ b/prober/sniff_realtime_lib.c
@@ -0,0 +1,11 @@
+#include <mqueue.h>
+
+int main(void) {
+ /* Under FreeBSD and OpenSuse, linking to the realtime lib is required,
+ but only for mq_xxx() functions so checking for sem_xxx() or shm_xxx()
+ here is not be a sufficient test.
+ */
+ mq_unlink("");
+
+ return 0;
+}