summaryrefslogtreecommitdiffstats
path: root/procps/procps-3.2.8-linux-ver-init.patch
blob: 33555543d7a0ba75e030bb5a20937c686c63d31d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=603759
# https://bugs.gentoo.org/show_bug.cgi?id=303120

Index: proc/version.c
===================================================================
RCS file: /cvsroot/procps/procps/proc/version.c,v
retrieving revision 1.7
diff -u -p -r1.7 version.c
--- proc/version.c	9 Feb 2003 07:27:16 -0000	1.7
+++ proc/version.c	14 Nov 2010 00:22:44 -0000
@@ -33,7 +33,7 @@ void display_version(void) {
 
 int linux_version_code;
 
-static void init_Linux_version(void) __attribute__((constructor));
+static void init_Linux_version(void) __attribute__((constructor(100)));
 static void init_Linux_version(void) {
     static struct utsname uts;
     int x = 0, y = 0, z = 0;	/* cleared in case sscanf() < 3 */