git » libfiu » commit 1cc90cc

Mangle the return offset size for 64-bit variants too

author Chris Lamb
2018-10-25 03:14:48 UTC
committer Alberto Bertogli
2018-10-26 07:31:16 UTC
parent 928666ad009c70ce52cfcda71ff222f9b148b86c

Mangle the return offset size for 64-bit variants too

Makes libfiu work on 32-bit platforms again, and fixes
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911733.

[Minor commit message edits by Alberto Bertogli]

preload/posix/generate +1 -0

diff --git a/preload/posix/generate b/preload/posix/generate
index 0b073e4..7a6fc03 100755
--- a/preload/posix/generate
+++ b/preload/posix/generate
@@ -183,6 +183,7 @@ class Function:
 		f.params_info = [
 			(x, y) if x != "const fpos_t *" else ("const fpos64_t *", y)
 			for (x, y) in f.params_info]
+		f.ret_type = f.ret_type.replace("off_t", "off64_t")
 
 		# This is glibc-specific, so surround it with #ifdefs.
 		return [Verbatim("#ifdef __GLIBC__"), f, Verbatim("#endif")]