https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=5f101c3c47d7169e6fd8d2dff1ce7cdf535d5b27

commit 5f101c3c47d7169e6fd8d2dff1ce7cdf535d5b27
Author:     Radek Bartoň <radek.bar...@microsoft.com>
AuthorDate: Thu Jun 5 12:42:05 2025 +0200
Commit:     Corinna Vinschen <cori...@vinschen.de>
CommitDate: Wed Jun 18 16:27:39 2025 +0200

    Cygwin: fix compatibility with GCC 15
    
    (cherry picked from commit 83af2fd6d1018bfe1c08c0028f65076f57684474)
    Signed-off-by: Radek Bartoň <radek.bar...@microsoft.com>

Diff:
---
 winsup/cygwin/create_posix_thread.cc    | 2 +-
 winsup/cygwin/local_includes/fhandler.h | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/winsup/cygwin/create_posix_thread.cc 
b/winsup/cygwin/create_posix_thread.cc
index 8e06099e4d2a..3fcd61707221 100644
--- a/winsup/cygwin/create_posix_thread.cc
+++ b/winsup/cygwin/create_posix_thread.cc
@@ -206,7 +206,7 @@ class thread_allocator
 public:
   thread_allocator () : current (THREAD_STORAGE_HIGH)
   {
-    alloc_func = wincap.has_extended_mem_api () ? &_alloc : &_alloc_old;
+    alloc_func = wincap.has_extended_mem_api () ? &thread_allocator::_alloc : 
&thread_allocator::_alloc_old;
   }
   PVOID alloc (SIZE_T size)
   {
diff --git a/winsup/cygwin/local_includes/fhandler.h 
b/winsup/cygwin/local_includes/fhandler.h
index 4c013dd4a063..dac32cd46aaf 100644
--- a/winsup/cygwin/local_includes/fhandler.h
+++ b/winsup/cygwin/local_includes/fhandler.h
@@ -1699,9 +1699,9 @@ class fhandler_disk_file: public fhandler_base
   uint64_t fs_ioc_getflags ();
   int fs_ioc_setflags (uint64_t);
 
-  falloc_allocate (int, off_t, off_t);
-  falloc_punch_hole (off_t, off_t);
-  falloc_zero_range (int, off_t, off_t);
+  int falloc_allocate (int, off_t, off_t);
+  int falloc_punch_hole (off_t, off_t);
+  int falloc_zero_range (int, off_t, off_t);
 
  public:
   fhandler_disk_file ();

Reply via email to