mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
sysutils/heirloom: Fix build on 15-CURRENT after e24a65528388
src/e24a65528388 was one of a series of commits to 15-CURRENT that removed kernel stack swapping support. e24a65528388 removed the P_SWAPPINGOUT flag resulting in this port failing to build on 15-CURRENT. Remove the test for the flag. MFH: 2024Q3
This commit is contained in:
parent
28b32cc68f
commit
2b625445f9
1 changed files with 17 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
||||||
--- ps/ps.c.orig 2007-02-02 06:40:20.000000000 -0800
|
--- ps/ps.c.orig 2024-08-02 07:55:02.072464000 -0700
|
||||||
+++ ps/ps.c 2009-03-06 14:51:53.455864840 -0800
|
+++ ps/ps.c 2024-08-02 08:09:25.924815000 -0700
|
||||||
@@ -88,6 +88,9 @@
|
@@ -87,6 +87,9 @@
|
||||||
#define proc process
|
#define proc process
|
||||||
#undef p_pgid
|
#undef p_pgid
|
||||||
#undef p_pctcpu
|
#undef p_pctcpu
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
#if defined (__DragonFly__)
|
#if defined (__DragonFly__)
|
||||||
#endif /* __DragonFly__ */
|
#endif /* __DragonFly__ */
|
||||||
#elif defined (__hpux)
|
#elif defined (__hpux)
|
||||||
@@ -492,6 +495,7 @@
|
@@ -491,6 +494,7 @@
|
||||||
|
|
||||||
static void postproc(struct proc *);
|
static void postproc(struct proc *);
|
||||||
static enum okay selectproc(struct proc *);
|
static enum okay selectproc(struct proc *);
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
/************************************************************************
|
/************************************************************************
|
||||||
* Utility functions *
|
* Utility functions *
|
||||||
@@ -2140,7 +2144,6 @@
|
@@ -2139,7 +2143,6 @@
|
||||||
static enum okay
|
static enum okay
|
||||||
getproc_kvm(struct proc *p)
|
getproc_kvm(struct proc *p)
|
||||||
{
|
{
|
||||||
|
@ -26,7 +26,18 @@
|
||||||
struct kinfo_proc *kp;
|
struct kinfo_proc *kp;
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
@@ -4875,6 +4878,7 @@
|
@@ -2205,8 +2208,10 @@
|
||||||
|
#else /* __FreeBSD__ >= 5 */
|
||||||
|
if (kp->ki_sflag & PS_INMEM)
|
||||||
|
p->p_flag |= FL_LOAD;
|
||||||
|
+#if (__FreeBSD__) < 15
|
||||||
|
if (kp->ki_sflag & PS_SWAPPINGOUT)
|
||||||
|
p->p_flag |= FL_SWAP;
|
||||||
|
+#endif /* __FreeBSD__ < 15 */
|
||||||
|
p->p_oldpri = ((double)kp->ki_pri.pri_user - PRI_MIN) /
|
||||||
|
(PRI_MAX - PRI_MIN) * 60 + 60;
|
||||||
|
p->p_pri = 40 - ((double)kp->ki_pri.pri_user - PRI_MIN) /
|
||||||
|
@@ -4874,6 +4879,7 @@
|
||||||
#ifdef __GLIBC__
|
#ifdef __GLIBC__
|
||||||
putenv("POSIXLY_CORRECT=1");
|
putenv("POSIXLY_CORRECT=1");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue