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