Loading
freeglut: fix build with gcc15
- add patch from merged upstream PR: https://www.github.com/freeglut/freeglut/pull/187 Fixes build failure with gcc15: ``` /build/freeglut-3.6.0/src/x11/fg_init_x11.c:297:6: error: conflicting types for 'fgPlatformDestroyContext'; have 'void(SFG_PlatformDisplay, struct __GLXcontextRec *)' {aka 'void(struct tagSFG_PlatformDisplay, struct __GLXcontextRec *)'} 297 | void fgPlatformDestroyContext ( SFG_PlatformDisplay pDisplay, SFG_WindowContextType MContext ) | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /build/freeglut-3.6.0/src/x11/fg_init_x11.c:34: /build/freeglut-3.6.0/src/egl/fg_init_egl.h:31:13: note: previous declaration of 'fgPlatformDestroyContext' with type 'void(void)' 31 | extern void fgPlatformDestroyContext(); | ^~~~~~~~~~~~~~~~~~~~~~~~ /build/freeglut-3.6.0/src/x11/fg_init_x11.c:297:6: error: conflicting types for 'fgPlatformDestroyContext'; have 'void(SFG_PlatformDisplay, struct __GLXcontextRec *)' {aka 'void(struct tagSFG_PlatformDisplay, struct __GLXcontextRec *)'} 297 | void fgPlatformDestroyContext ( SFG_PlatformDisplay pDisplay, SFG_WindowContextType MContext ) | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /build/freeglut-3.6.0/src/x11/fg_init_x11.c:34: /build/freeglut-3.6.0/src/egl/fg_init_egl.h:31:13: note: previous declaration of 'fgPlatformDestroyContext' with type 'void(void)' 31 | extern void fgPlatformDestroyContext(); | ^~~~~~~~~~~~~~~~~~~~~~~~ ```