Skip to content

[SDL] Fix missing header build error on some Linux systems. #108144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2025

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Jun 30, 2025

I'm getting build errors on Asahi Linux (arm64) using GCC 15.1.1, but having stdlib included for free seems to be a generic C99+ requirement, so it's likely not specific to this config.

thirdparty/sdl/joystick/linux/SDL_sysjoystick.c:781:9: error: implicit declaration of function 'free' [-Wimplicit-function-declaration]
  781 |         free(entries[i]); // This should NOT be SDL_free()
      |         ^~~~
thirdparty/sdl/joystick/linux/SDL_sysjoystick.c:126:1: note: include '<stdlib.h>' or provide a declaration of 'free'
  125 | #include "../../core/linux/SDL_udev.h"

@bruvzg bruvzg added this to the 4.5 milestone Jun 30, 2025
@bruvzg bruvzg added the bug label Jun 30, 2025
@bruvzg bruvzg requested a review from a team as a code owner June 30, 2025 18:05
@Repiteo Repiteo merged commit afa4e2a into godotengine:master Jul 3, 2025
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Jul 3, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants