Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame patches/smallbasic/dlopen.patch

Lucio Andrés Illanes Albornoz d557c3
diff -ru SmallBASIC.orig/src/common/extlib.c SmallBASIC/src/common/extlib.c
Lucio Andrés Illanes Albornoz d557c3
--- SmallBASIC.orig/src/common/extlib.c	2018-08-18 16:06:03.103804486 +0200
Lucio Andrés Illanes Albornoz d557c3
+++ SmallBASIC/src/common/extlib.c	2018-08-18 16:13:04.390441908 +0200
Lucio Andrés Illanes Albornoz d557c3
@@ -22,7 +22,7 @@
Lucio Andrés Illanes Albornoz d557c3
  #define WIN_EXTLIB
Lucio Andrés Illanes Albornoz d557c3
  #define LIB_EXT ".dll"
Lucio Andrés Illanes Albornoz d557c3
  #define DEFAULT_PATH "c:/sbasic/lib"
Lucio Andrés Illanes Albornoz d557c3
-#elif defined(__linux__) && defined(_UnixOS)
Lucio Andrés Illanes Albornoz d557c3
+#elif defined(__linux__) || defined(__midipix__) && defined(_UnixOS)
Lucio Andrés Illanes Albornoz d557c3
  #include <dlfcn.h>
Lucio Andrés Illanes Albornoz d557c3
  #define LNX_EXTLIB
Lucio Andrés Illanes Albornoz d557c3
  #define LIB_EXT ".so"