1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../psmisc/no-glibcism.patch
5 # Copyright (C) 2006 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- SDE-COPYRIGHT-NOTE-END ---
17 Though I have not looked it up in standards this looks quite like a glibc'ism,
18 of course dietlibc does not include this crap and other C libraries might
21 - Rene Rebe <rene@exactcode.de>
23 --- psmisc-21.9/src/pstree.c.vanilla 2006-01-06 23:19:57.000000000 +0100
24 +++ psmisc-21.9/src/pstree.c 2006-01-06 23:22:53.000000000 +0100
26 #include <selinux/selinux.h>
27 #endif /*WITH_SELINUX*/
29 -extern const char *__progname;
38 - if (!strcmp(__progname, "pstree.x11"))
39 + if (strstr(argv[0], "pstree.x11"))