psmisc-no-__progname.patch 716 B

123456789101112131415161718192021222324
  1. [PATCH]: pstree: don't use glibc-specific __progname
  2. uclibc (per default) doesn't implement __progname, and the pstree.x11
  3. stuff isn't that critical, so just disable it.
  4. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
  5. ---
  6. src/pstree.c | 3 ---
  7. 1 file changed, 3 deletions(-)
  8. Index: psmisc-22.8/src/pstree.c
  9. ===================================================================
  10. --- psmisc-22.8.orig/src/pstree.c
  11. +++ psmisc-22.8/src/pstree.c
  12. @@ -893,9 +893,6 @@ main (int argc, char **argv)
  13. bindtextdomain(PACKAGE, LOCALEDIR);
  14. textdomain(PACKAGE);
  15. #endif
  16. -
  17. - if (!strcmp(__progname, "pstree.x11"))
  18. - wait_end=1;
  19. /*
  20. * Attempt to figure out a good default symbol set. Will be overriden by