From 2d69822fb425ed71aa240a42db43bec1770e2d39 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sun, 6 Apr 2025 20:08:25 -0700 Subject: [PATCH] fseterr: Port to recent Haiku snapshots. * lib/fseterr.h (__fseterr): Provide missing declaration. --- ChangeLog | 3 +++ lib/fseterr.h | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 11ef1a3b82..5bc468a6ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2025-04-06 Collin Funk + fseterr: Port to recent Haiku snapshots. + * lib/fseterr.h (__fseterr): Provide missing declaration. + fflush: Port to recent Haiku snapshots. * lib/stdio-impl.h (_IO_IN_BACKUP) [__HAIKU__]: Define macros. * lib/fflush.c (fp_) [!__HAIKU__]: Define to fp. diff --git a/lib/fseterr.h b/lib/fseterr.h index 42e49fcb65..57c30ef3d7 100644 --- a/lib/fseterr.h +++ b/lib/fseterr.h @@ -1,5 +1,5 @@ /* Set the error indicator of a stream. - Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc. + Copyright (C) 2007, 2009-2025 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -30,6 +30,11 @@ #if HAVE___FSETERR /* musl libc */ +/* Haiku has __fseterr but does not declare it. */ +# if defined __HAIKU__ +extern void __fseterr (FILE *fp); +# endif + # include # define fseterr(fp) __fseterr (fp) -- 2.39.5