SDL: SDL_bsdjoystick: fix -Wundef warning on FreeBSD (4940b)

From 4940b5dbc22195e091d88ac14b583a45e49f1f79 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 22 Nov 2023 03:31:46 +0100
Subject: [PATCH] SDL_bsdjoystick: fix -Wundef warning on FreeBSD

---
 src/joystick/bsd/SDL_bsdjoystick.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/joystick/bsd/SDL_bsdjoystick.c b/src/joystick/bsd/SDL_bsdjoystick.c
index e3042631464c..89523e08ba1e 100644
--- a/src/joystick/bsd/SDL_bsdjoystick.c
+++ b/src/joystick/bsd/SDL_bsdjoystick.c
@@ -69,7 +69,7 @@
 #include <sys/joystick.h>
 #endif
 
-#if SDL_HAVE_MACHINE_JOYSTICK_H
+#ifdef SDL_HAVE_MACHINE_JOYSTICK_H
 #include <machine/joystick.h>
 #endif