aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/patches/fix_schedlib_loading-0.41.0.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/patches/fix_schedlib_loading-0.41.0.patch b/packages/patches/fix_schedlib_loading-0.41.0.patch
new file mode 100644
index 00000000..29195e4d
--- /dev/null
+++ b/packages/patches/fix_schedlib_loading-0.41.0.patch
@@ -0,0 +1,29 @@
+--- s_loader.orig 2008-03-12 11:19:15.000000000 -0400
++++ s_loader.c 2008-03-12 11:18:09.000000000 -0400
+@@ -247,7 +247,7 @@
+ typedef int (*t_externalschedlibmain)(const char *);
+ t_externalschedlibmain externalmainfunc;
+ char filename[MAXPDSTRING];
+- snprintf(filename, sizeof(filename), "%s.%s", externalschedlibname,
++ snprintf(filename, sizeof(filename), "%s%s", externalschedlibname,
+ sys_dllextent);
+ sys_bashfilename(filename, filename);
+ #ifdef MSW
+@@ -255,7 +255,7 @@
+ HINSTANCE ntdll = LoadLibrary(filename);
+ if (!ntdll)
+ {
+- post("%s: couldn't load external scheduler lib ", filename);
++ fprintf(stderr, "%s: couldn't load external scheduler lib ", filename);
+ return (0);
+ }
+ externalmainfunc =
+@@ -266,7 +266,7 @@
+ void *dlobj = dlopen(filename, RTLD_NOW | RTLD_GLOBAL);
+ if (!dlobj)
+ {
+- post("%s: %s", filename, dlerror());
++ fprintf(stderr, "%s: %s\n", filename, dlerror());
+ return (0);
+ }
+ externalmainfunc = (t_externalschedlibmain)dlsym(dlobj,