summaryrefslogtreecommitdiffstats
path: root/sys-utils/ipcs.c
diff options
context:
space:
mode:
authorAurelien Jarno2014-08-24 18:04:42 +0200
committerKarel Zak2014-09-17 10:14:19 +0200
commite4a382b777dda6977f33ba867498c2c59556dee6 (patch)
tree36c2996a5adb552910a728b12e9cd32e6ae4a3a2 /sys-utils/ipcs.c
parentlib/blkdev: report correct disk size on GNU/kFreeBSD. Thanks Tuco. (diff)
downloadkernel-qcow2-util-linux-e4a382b777dda6977f33ba867498c2c59556dee6.tar.gz
kernel-qcow2-util-linux-e4a382b777dda6977f33ba867498c2c59556dee6.tar.xz
kernel-qcow2-util-linux-e4a382b777dda6977f33ba867498c2c59556dee6.zip
ipcs: remaining kFreeBSD hackery for building.
Addresses-Debian-Bug: #527384 Signed-off-by: LaMont Jones <lamont@debian.org>
Diffstat (limited to 'sys-utils/ipcs.c')
-rw-r--r--sys-utils/ipcs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/ipcs.c b/sys-utils/ipcs.c
index 8ed5698dd..9ce536612 100644
--- a/sys-utils/ipcs.c
+++ b/sys-utils/ipcs.c
@@ -461,8 +461,10 @@ static void do_msg (char format, int unit)
return;
}
printf (_("------ Messages Status --------\n"));
+#ifndef __FreeBSD_kernel__
printf (_("allocated queues = %d\n"), msginfo.msgpool);
printf (_("used headers = %d\n"), msginfo.msgmap);
+#endif
ipc_print_size(unit, _("used space"), msginfo.msgtql,
unit == IPC_UNIT_DEFAULT ? _(" bytes\n") : "\n", 0);
return;