summaryrefslogtreecommitdiffstats
path: root/package/psmisc/psmisc-no-__progname.patch
blob: 063b120eef7a1de8cb4597beb42e0a889499d45e (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
[PATCH]: pstree: don't use glibc-specific __progname

uclibc (per default) doesn't implement __progname, and the pstree.x11
stuff isn't that critical, so just disable it.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

diff -Nura psmisc-22.13.orig/src/pstree.c psmisc-22.13/src/pstree.c
--- psmisc-22.13.orig/src/pstree.c	2010-07-12 08:10:03.000000000 -0300
+++ psmisc-22.13/src/pstree.c	2011-01-07 15:02:41.902741728 -0300
@@ -49,8 +49,6 @@
 #include <selinux/selinux.h>
 #endif                                /*WITH_SELINUX */
 
-extern const char *__progname;
-
 #define PROC_BASE    "/proc"
 
 /* UTF-8 defines by Johan Myreen, updated by Ben Winslow */
@@ -854,9 +852,6 @@
     textdomain(PACKAGE);
 #endif
 
-    if (!strcmp(__progname, "pstree.x11"))
-        wait_end = 1;
-
     /*
      * Attempt to figure out a good default symbol set.  Will be overriden by
      * command-line options, if given.