aboutsummaryrefslogtreecommitdiff
path: root/packages/patches/fix_schedlib_loading-0.41.0.patch
blob: 29195e4dfc6d6a6f25c5183176b8d7ec95ad79b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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,