Skip to content

Commit 078385a

Browse files
authored
Merge pull request #71 from Redfoxmoon3/master
midipix like linux has /proc and dlopen(3)
2 parents b3f4c21 + b100fc5 commit 078385a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common/extlib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#define WIN_EXTLIB
2323
#define LIB_EXT ".dll"
2424
#define DEFAULT_PATH "c:/sbasic/lib"
25-
#elif defined(__linux__) && defined(_UnixOS)
25+
#elif defined(__linux__) || defined(__midipix__) && defined(_UnixOS)
2626
#include <dlfcn.h>
2727
#define LNX_EXTLIB
2828
#define LIB_EXT ".so"

src/platform/sdl/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ void setupAppPath(const char *path) {
249249
strlcpy(g_appPath, cwd, sizeof(g_appPath));
250250
strlcat(g_appPath, "/", sizeof(g_appPath));
251251
strlcat(g_appPath, path, sizeof(g_appPath));
252-
#if defined(__linux__)
252+
#if defined(__linux__) || defined(__midipix__)
253253
if (access(g_appPath, X_OK) != 0) {
254254
// launched via PATH, retrieve full path
255255
ssize_t len = ::readlink("/proc/self/exe", g_appPath, sizeof(g_appPath));

0 commit comments

Comments
 (0)