summaryrefslogtreecommitdiff
path: root/source/a/procps/procps-3.2.8.unknown.hz.value.diff
blob: be283814e29ff1176ee3f2563e89ea8102bd6fb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- procps-3.2.8.orig/proc/sysinfo.c	2008-03-24 04:33:43.000000000 +0000
+++ procps-3.2.8.orig/proc/sysinfo.c	2011-02-07 18:14:16.476982472 +0000
@@ -212,6 +212,7 @@ static int check_for_privs(void){
 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
   //
--- procps-3.2.8.orig/proc/version.c	2003-01-29 01:11:43.000000000 +0000
+++ procps-3.2.8.orig/proc/version.c	2011-02-07 18:13:12.283649138 +0000
@@ -33,8 +33,7 @@ void display_version(void) {
 
 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 */
     
--- procps-3.2.8.orig/proc/version.h	2002-12-15 00:08:32.000000000 +0000
+++ procps-3.2.8.orig/proc/version.h	2011-02-07 18:14:20.263649138 +0000
@@ -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 */