Description: CLOCK_BOOTTIME is a Linux extension. Use CLOCK_MONOTONIC when not available. Author: Mattias Ellert diff -ur procps-4.0.6.orig/library/pids.c procps-4.0.6/library/pids.c --- procps-4.0.6.orig/library/pids.c 2026-01-29 10:48:26.000000000 +0100 +++ procps-4.0.6/library/pids.c 2026-05-30 05:33:38.000000000 +0200 @@ -42,6 +42,9 @@ #include "procps-private.h" #include "pids.h" +#ifndef CLOCK_BOOTTIME +#define CLOCK_BOOTTIME CLOCK_MONOTONIC +#endif //#define UNREF_RPTHASH // report hash details at uref() time diff -ur procps-4.0.6.orig/library/uptime.c procps-4.0.6/library/uptime.c --- procps-4.0.6.orig/library/uptime.c 2026-01-29 10:48:26.000000000 +0100 +++ procps-4.0.6/library/uptime.c 2026-05-30 05:32:32.000000000 +0200 @@ -44,6 +44,10 @@ #include "procps-private.h" #include "pids.h" +#ifndef CLOCK_BOOTTIME +#define CLOCK_BOOTTIME CLOCK_MONOTONIC +#endif + #define UPTIME_FILE "/proc/uptime" #define UPTIME_BUFLEN 256 diff -ur procps-4.0.6.orig/src/top/top.c procps-4.0.6/src/top/top.c --- procps-4.0.6.orig/src/top/top.c 2026-01-29 10:48:26.000000000 +0100 +++ procps-4.0.6/src/top/top.c 2026-05-30 05:31:50.000000000 +0200 @@ -59,6 +59,10 @@ #include "top.h" #include "top_nls.h" +#ifndef CLOCK_BOOTTIME +#define CLOCK_BOOTTIME CLOCK_MONOTONIC +#endif + /*###### Miscellaneous global stuff ####################################*/ /* The original and new terminal definitions