summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 373adb6d1d..ac97aed389 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1140,8 +1140,12 @@ void init_vo_spudec(struct MPContext *mpctx)
* will be done automatically by replacing our main() if we include SDL.h.
*/
#if defined(__APPLE__) && defined(CONFIG_SDL)
+#ifdef CONFIG_SDL_SDL_H
+#include <SDL/SDL.h>
+#else
#include <SDL.h>
#endif
+#endif
/**
* \brief append a formatted string