blob: 6fcda403bc0e14afc7178db558a9d1843b8af02e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-ao,v 1.1.1.1 2007/10/17 21:35:53 agc Exp $
--- lib/procMgr/procMgrPosix.c 2007/09/28 21:44:48 1.1
+++ lib/procMgr/procMgrPosix.c 2007/09/28 21:45:36
@@ -32,7 +32,7 @@
// pull in setresuid()/setresgid() if possible
#define _GNU_SOURCE
#include <unistd.h>
-#if !defined(__FreeBSD__) && !defined(sun)
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__NetBSD__)
#include <asm/param.h>
#include <locale.h>
#include <sys/stat.h>
@@ -141,7 +141,7 @@
ProcMgr_ListProcesses(void)
{
ProcMgr_ProcList *procList = NULL;
-#if !defined(__FreeBSD__) && !defined(sun)
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__NetBSD__)
Bool failed = FALSE;
DynBuf dbProcId;
DynBuf dbProcCmd;
@@ -755,7 +755,7 @@
/*
* if its not linux, assume its gone
*/
-#if !defined(__FreeBSD__) && !defined(sun)
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__NetBSD__)
char procname[256];
int ret;
struct stat st;
|