Skip to content

Commit

Permalink
Fixed FreeBSD build
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 8, 2023
1 parent 7cc3e94 commit d9e6dcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/linux/SDL_evdev_kbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,9 @@ SDL_EVDEV_keyboard_state *SDL_EVDEV_kbd_init(void)
return NULL;
}

void SDL_EVDEV_kbd_set_muted(SDL_EVDEV_keyboard_state *state, SDL_bool muted)

This comment has been minimized.

Copy link
@sezero

sezero Nov 8, 2023

Contributor

@slouken: this requires that SDL_EVDEV_kbd_set_muted has a freebsd implementation (see the #elif condition), and build still fails because of it.

This comment has been minimized.

Copy link
@sezero

sezero Nov 8, 2023

Contributor

You inserted the dummy proc into the #elif !defined(SDL_INPUT_FBSDKBIO) block which means that freebsd code has an implementation of it which it actually does not

This comment has been minimized.

Copy link
@slouken

slouken Nov 8, 2023

Author Collaborator

Sorry, I got it, fixed in a4c6b38.

This comment has been minimized.

Copy link
@sezero

sezero Nov 8, 2023

Contributor

Needs cherry-picking to SDL2 branch

This comment has been minimized.

Copy link
@slouken

slouken Nov 8, 2023

Author Collaborator

I did. If I forgot to push it I’ll take care of that when I get home.

This comment has been minimized.

Copy link
@slouken

slouken Nov 8, 2023

Author Collaborator

Done!

{
}
void SDL_EVDEV_kbd_keycode(SDL_EVDEV_keyboard_state *state, unsigned int keycode, int down)
{
}
Expand Down

0 comments on commit d9e6dcc

Please sign in to comment.