010-uclibc.patch 402 B

123456789101112131415
  1. --- a/common/compat.c
  2. +++ b/common/compat.c
  3. @@ -97,8 +97,12 @@
  4. #include <unistd.h>
  5. #if defined (HAVE_PROGRAM_INVOCATION_SHORT_NAME) && !HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
  6. +#ifdef __UCLIBC__
  7. +extern const char *program_invocation_short_name;
  8. +#else
  9. extern char *program_invocation_short_name;
  10. #endif
  11. +#endif
  12. #if defined (HAVE___PROGNAME) && !HAVE_DECL___PROGNAME
  13. extern char *__progname;