2021-04-25 11:08:48 +00:00
|
|
|
From c988692ec6b151541088b1b48a29d6a54269f55c Mon Sep 17 00:00:00 2001
|
2020-09-04 19:21:25 +00:00
|
|
|
From: =?UTF-8?q?S=C3=B6ren=20Tempel?= <soeren+git@soeren-tempel.net>
|
|
|
|
Date: Sun, 30 Aug 2020 19:26:53 +0200
|
2021-04-25 11:08:48 +00:00
|
|
|
Subject: [PATCH] gcc-go: Prefer _off_t over _off64_t
|
2020-09-04 19:21:25 +00:00
|
|
|
|
|
|
|
musl does not seem to have _off64_t.
|
|
|
|
---
|
|
|
|
libgo/mksysinfo.sh | 6 +-----
|
|
|
|
1 file changed, 1 insertion(+), 5 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
|
|
|
|
index 972e2c379bc..8d6da15f983 100755
|
|
|
|
--- a/libgo/mksysinfo.sh
|
|
|
|
+++ b/libgo/mksysinfo.sh
|
|
|
|
@@ -379,11 +379,7 @@ fi
|
|
|
|
# Some basic types.
|
|
|
|
echo 'type Size_t _size_t' >> ${OUT}
|
|
|
|
echo "type Ssize_t _ssize_t" >> ${OUT}
|
|
|
|
-if grep '^const _HAVE_OFF64_T = ' gen-sysinfo.go > /dev/null 2>&1; then
|
|
|
|
- echo "type Offset_t _off64_t" >> ${OUT}
|
|
|
|
-else
|
|
|
|
- echo "type Offset_t _off_t" >> ${OUT}
|
|
|
|
-fi
|
|
|
|
+echo "type Offset_t _off_t" >> ${OUT}
|
|
|
|
echo "type Mode_t _mode_t" >> ${OUT}
|
|
|
|
echo "type Pid_t _pid_t" >> ${OUT}
|
|
|
|
echo "type Uid_t _uid_t" >> ${OUT}
|
2020-11-13 10:30:52 +00:00
|
|
|
--
|
2021-03-28 18:49:36 +00:00
|
|
|
2.31.0
|
2020-11-13 10:30:52 +00:00
|
|
|
|