OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.3 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../psmisc/no-glibcism.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  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
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. Though I have not looked it up in standards this looks quite like a glibc'ism,
  17. of course dietlibc does not include this crap and other C libraries might
  18. neither.
  19. - Rene Rebe <rene@exactcode.de>
  20. --- psmisc-21.9/src/pstree.c.vanilla 2006-01-06 23:19:57.000000000 +0100
  21. +++ psmisc-21.9/src/pstree.c 2006-01-06 23:22:53.000000000 +0100
  22. @@ -48,8 +48,6 @@
  23. #include <selinux/selinux.h>
  24. #endif /*WITH_SELINUX*/
  25. -extern const char *__progname;
  26. -
  27. #ifndef MAX_DEPTH
  28. #define MAX_DEPTH 100
  29. #endif
  30. @@ -810,7 +808,7 @@
  31. textdomain(PACKAGE);
  32. #endif
  33. - if (!strcmp(__progname, "pstree.x11"))
  34. + if (strstr(argv[0], "pstree.x11"))
  35. wait_end=1;
  36. /*