From e1ac643b32573b6b8d3e80ddf623f85089c771f0 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 10 Aug 2018 14:54:26 -0400 Subject: [PATCH] bsd: Patched to compile. (I think.) --- src/joystick/bsd/SDL_sysjoystick.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/joystick/bsd/SDL_sysjoystick.c b/src/joystick/bsd/SDL_sysjoystick.c index 7b145fd0d..a282155c8 100644 --- a/src/joystick/bsd/SDL_sysjoystick.c +++ b/src/joystick/bsd/SDL_sysjoystick.c @@ -163,6 +163,9 @@ static void report_free(struct report *); static int numjoysticks = 0; +static int BSD_JoystickOpen(SDL_Joystick * joy, int device_index); +static void BSD_JoystickClose(SDL_Joystick * joy); + static int BSD_JoystickInit(void) { @@ -611,7 +614,7 @@ BSD_JoystickGetDeviceGUID( int device_index ) { SDL_JoystickGUID guid; /* the GUID is just the first 16 chars of the name for now */ - const char *name = BSD_JoystickNameForDeviceIndex( device_index ); + const char *name = BSD_JoystickGetDeviceName( device_index ); SDL_zero( guid ); SDL_memcpy( &guid, name, SDL_min( sizeof(guid), SDL_strlen( name ) ) ); return guid;