Commit d5c977adb7e65969b32793da0972c3e8c065c4a8

Ryan C. Gordon 2014-01-08T00:31:19

Patched to compile on OpenBSD.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/dynapi/SDL_dynapi.c b/src/dynapi/SDL_dynapi.c
index f04a904..7174518 100644
--- a/src/dynapi/SDL_dynapi.c
+++ b/src/dynapi/SDL_dynapi.c
@@ -220,7 +220,7 @@ static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
     }
     return retval;
 }
-#elif defined(unix) || defined(__APPLE__)
+#elif defined(unix) || defined(__unix__) || defined(__APPLE__)
 #include <dlfcn.h>
 static SDL_INLINE void *get_sdlapi_entry(const char *fname, const char *sym)
 {