logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

tinycc.patch (770B)


  1. SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
  2. SPDX-License-Identifier: GPL-2.0-or-later
  3. int name, namelen; is wrong for mes libc, it is char* name, so we modify tinycc
  4. to reflect this.
  5. diff --git lib/sh/oslib.c lib/sh/oslib.c
  6. index 90d7be9..37fdf2a 100644
  7. --- bash-2.05b/lib/sh/oslib.c
  8. +++ bash-2.05b/lib/sh/oslib.c
  9. @@ -192,8 +192,7 @@ bzero (s, n)
  10. # include <sys/utsname.h>
  11. int
  12. gethostname (name, namelen)
  13. - char *name;
  14. - int namelen;
  15. + char *name; int namelen;
  16. {
  17. int i;
  18. struct utsname ut;
  19. @@ -209,7 +208,7 @@ gethostname (name, namelen)
  20. # else /* !HAVE_UNAME */
  21. int
  22. gethostname (name, namelen)
  23. - int name, namelen;
  24. + char* name; int namelen;
  25. {
  26. strncpy (name, "unknown", namelen);
  27. name[namelen] = '\0';