Files
bpfire/src/patches/procps-3.2.8-fix_unknown_HZ_value.patch
Matthias Fischer 15f37d7738 procps: Update to 3.2.8
For details see:
http://procps.sourceforge.net/changelog.html

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2016-05-16 16:03:08 +01:00

36 lines
1.4 KiB
Diff

diff -Naur procps-3.2.6.org/proc/sysinfo.c procps-3.2.6/proc/sysinfo.c
--- procps-3.2.6.org/proc/sysinfo.c 2005-03-14 05:31:27.000000000 +0100
+++ procps-3.2.6/proc/sysinfo.c 2011-10-02 12:51:32.000000000 +0200
@@ -212,6 +212,7 @@
static void init_libproc(void) __attribute__((constructor));
static void init_libproc(void){
have_privs = check_for_privs();
+ init_Linux_version();
// ought to count CPUs in /proc/stat instead of relying
// on glibc, which foolishly tries to parse /proc/cpuinfo
//
diff -Naur procps-3.2.6.org/proc/version.c procps-3.2.6/proc/version.c
--- procps-3.2.6.org/proc/version.c 2003-01-29 02:11:43.000000000 +0100
+++ procps-3.2.6/proc/version.c 2011-10-02 12:52:36.000000000 +0200
@@ -33,8 +33,7 @@
int linux_version_code;
-static void init_Linux_version(void) __attribute__((constructor));
-static void init_Linux_version(void) {
+void init_Linux_version(void) {
static struct utsname uts;
int x = 0, y = 0, z = 0; /* cleared in case sscanf() < 3 */
diff -Naur procps-3.2.6.org/proc/version.h procps-3.2.6/proc/version.h
--- procps-3.2.6.org/proc/version.h 2002-12-15 01:08:32.000000000 +0100
+++ procps-3.2.6/proc/version.h 2011-10-02 12:53:10.000000000 +0200
@@ -14,6 +14,7 @@
EXTERN_C_BEGIN
+extern void init_Linux_version(void);
extern void display_version(void); /* display suite version */
extern const char procps_version[]; /* global buf for suite version */