summaryrefslogtreecommitdiff
path: root/sysutils/libgtop/patches/patch-sysdeps_bsd_shm_limits.c
blob: 327626da5435335eabc0e37d3adc2432c7431791 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-sysdeps_bsd_shm_limits.c,v 1.1 2015/06/06 10:59:57 prlw1 Exp $

struct shminfo is available without the need for _KERNEL.

--- sysdeps/bsd/shm_limits.c.orig	2011-06-01 15:40:47.000000000 +0000
+++ sysdeps/bsd/shm_limits.c
@@ -45,11 +45,13 @@ glibtop_get_shm_limits_p (glibtop *serve
 
 /* #define KERNEL to get declaration of `struct shminfo'. */
 
+#ifndef __NetBSD__
 #if (defined(__FreeBSD__) && (__FreeBSD_version < 410000)) || defined(__bsdi__)
 #define KERNEL 1
 #else
 #define _KERNEL 1
 #endif
+#endif
 
 #include <sys/ipc.h>
 #include <sys/shm.h>