SDL: SDL_bsdjoystick: fix -Wundef warning on FreeBSD

From f26a93211fc74658ca63857b4ca75ecdaca4b87f 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 cb896c4c668b..452228907615 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