From: Collin Funk Date: Mon, 7 Apr 2025 03:08:25 +0000 (-0700) Subject: fseterr: Port to recent Haiku snapshots. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=2d69822fb425ed71aa240a42db43bec1770e2d39;p=gnulib.git fseterr: Port to recent Haiku snapshots. * lib/fseterr.h (__fseterr): Provide missing declaration. --- 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)