git: <stdio.h>: Fix issues introduced with the fopencookie() changes.
swildner at crater.dragonflybsd.org
Thu Feb 9 06:55:27 PST 2023
Author: Sascha Wildner <saw at online.de>
Date: Thu Feb 9 15:53:29 2023 +0100
<stdio.h>: Fix issues introduced with the fopencookie() changes.
a765cedf26cef470ba7deee42c365f0221690a1a added fopencookie() and
associated types from FreeBSD but it introduced a number of issues:
* Wrong parentheses caused it to try to (re-)typedef the ssize_t type.
Fixed by removing parentheses and using __ssize_t. This fixes
graphics/png as pointed out by David Shao. ssize_t isn't available
in the compilation environment that graphics/png uses.
* Use off_t which is 64 bits in DragonFly. No need for off64_t.
* Put everything under __BSD_VISIBLE because it is not standard.
* While here, bump the manpage's date properly.
Reported-by: David Shao
Summary of changes:
include/stdio.h | 15 +++++----------
lib/libc/stdio/fopencookie.3 | 4 ++--
2 files changed, 7 insertions(+), 12 deletions(-)
DragonFly BSD source repository
More information about the Commits