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.

43 lines
1.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0038-gcc-go-Prefer-_off_t-over-_off64_t.patch
  5. # Copyright (C) 2020 The OpenSDE 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. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From ff096af4402ab87a61eb3979b47246a3a1b4fa38 Mon Sep 17 00:00:00 2001
  17. From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net>
  18. Date: Sun, 30 Aug 2020 19:26:53 +0200
  19. Subject: [PATCH] gcc-go: Prefer _off_t over _off64_t
  20. musl does not seem to have _off64_t.
  21. ---
  22. libgo/mksysinfo.sh | 6 +-----
  23. 1 file changed, 1 insertion(+), 5 deletions(-)
  24. diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
  25. index 972e2c379bc..8d6da15f983 100755
  26. --- a/libgo/mksysinfo.sh
  27. +++ b/libgo/mksysinfo.sh
  28. @@ -379,11 +379,7 @@ fi
  29. # Some basic types.
  30. echo 'type Size_t _size_t' >> ${OUT}
  31. echo "type Ssize_t _ssize_t" >> ${OUT}
  32. -if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
  33. - echo "type Offset_t _off64_t" >> ${OUT}
  34. -else
  35. - echo "type Offset_t _off_t" >> ${OUT}
  36. -fi
  37. +echo "type Offset_t _off_t" >> ${OUT}
  38. echo "type Mode_t _mode_t" >> ${OUT}
  39. echo "type Pid_t _pid_t" >> ${OUT}
  40. echo "type Uid_t _uid_t" >> ${OUT}