]> Savannah Git Hosting - gnulib.git/commitdiff
fseterr: Port to recent Haiku snapshots.
authorCollin Funk <collin.funk1@gmail.com>
Mon, 7 Apr 2025 03:08:25 +0000 (20:08 -0700)
committerBruno Haible <bruno@clisp.org>
Mon, 14 Apr 2025 22:54:55 +0000 (00:54 +0200)
* lib/fseterr.h (__fseterr): Provide missing declaration.

ChangeLog
lib/fseterr.h

index 11ef1a3b82c78621df458fb0fbfc99cad6f2087c..5bc468a6ac4fd2f7dafbf85eecce65ef56134ec4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2025-04-06  Collin Funk  <collin.funk1@gmail.com>
 
+       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.
index 42e49fcb659ee52dfbcbec1e4ea1423ad83c1d79..57c30ef3d755267facf5e033d593133bd5812b0b 100644 (file)
@@ -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
 
 #if HAVE___FSETERR /* musl libc */
 
+/* Haiku has __fseterr but does not declare it.  */
+# if defined __HAIKU__
+extern void __fseterr (FILE *fp);
+# endif
+
 # include <stdio_ext.h>
 # define fseterr(fp) __fseterr (fp)