pkgsrc/sysutils/psmisc/patches/patch-ae
jlam c8a1f86f28 Update psmisc to 20.1. Changes from version 19:
- command line -<num> put back in.
 - got rid of annoying "sending signal #" debug message
 - updated killall.1
 - updated killall usage
 - verbose now tells you what signal it is killing with.
 - New maintainer
 - Uses automake/autoconf to determine things
 - License changed to GPL
 - signames.h generated better (suggested by Grant Erickson)
 - uses getopt() for better command line stuff
 - makes less assumptions about process name, closes Debian Bug #53337
 - Doesn't use losetup for loop devices in fuser.
 - Better selection of process name (thanks to David desJardins)
2001-04-24 16:59:34 +00:00

25 lines
609 B
Text

$NetBSD: patch-ae,v 1.3 2001/04/24 16:59:35 jlam Exp $
--- src/procfs.h.orig Tue Apr 24 12:31:50 2001
+++ src/procfs.h
@@ -0,0 +1,20 @@
+#include <sys/param.h>
+
+#if (defined(BSD) && BSD >= 199306)
+#define BSD_44_PROCFS
+#if (defined(__NetBSD_Version__) && __NetBSD_Version__ >= 104180000)
+#define BSD_PROCFS_CMDLINE
+#endif
+#endif
+
+#ifdef BSD_44_PROCFS
+#define PROC_BASE "/proc"
+#define CMDLINE_FILE "cmdline"
+#define EXE_FILE "file"
+#define STATUS_FILE "status"
+#else
+#define PROC_BASE "/proc"
+#define CMDLINE_FILE "cmdline"
+#define EXE_FILE "exe"
+#define STATUS_FILE "stat"
+#endif