mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
$NetBSD: patch-bf,v 1.1 2008/08/31 06:36:48 scottr Exp $
|
|
|
|
--- lib/procMgr/procMgrPosix.c.orig 2008-08-08 02:01:53.000000000 -0500
|
|
+++ lib/procMgr/procMgrPosix.c
|
|
@@ -31,7 +31,7 @@
|
|
// pull in setresuid()/setresgid() if possible
|
|
#define _GNU_SOURCE
|
|
#include <unistd.h>
|
|
-#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__)
|
|
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__) && !defined(__NetBSD__)
|
|
#include <asm/param.h>
|
|
#include <locale.h>
|
|
#include <sys/stat.h>
|
|
@@ -158,7 +158,7 @@ ProcMgr_ProcList *
|
|
ProcMgr_ListProcesses(void)
|
|
{
|
|
ProcMgr_ProcList *procList = NULL;
|
|
-#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__)
|
|
+#if !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__) && !defined(__NetBSD__)
|
|
Bool failed = FALSE;
|
|
DynBuf dbProcId;
|
|
DynBuf dbProcCmd;
|
|
@@ -453,7 +453,7 @@ abort:
|
|
ProcMgr_FreeProcList(procList);
|
|
procList = NULL;
|
|
}
|
|
-#endif // !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__)
|
|
+#endif // !defined(__FreeBSD__) && !defined(sun) && !defined(__APPLE__) && !defined(__NetBSD__)
|
|
|
|
return procList;
|
|
}
|