fixed execution order bug that was causing the first two frame numbers to output...
[puredata.git] / packages / patches / fix_schedlib_loading-0.41.0.patch
blob29195e4dfc6d6a6f25c5183176b8d7ec95ad79b3
1 --- s_loader.orig 2008-03-12 11:19:15.000000000 -0400
2 +++ s_loader.c 2008-03-12 11:18:09.000000000 -0400
3 @@ -247,7 +247,7 @@
4 typedef int (*t_externalschedlibmain)(const char *);
5 t_externalschedlibmain externalmainfunc;
6 char filename[MAXPDSTRING];
7 - snprintf(filename, sizeof(filename), "%s.%s", externalschedlibname,
8 + snprintf(filename, sizeof(filename), "%s%s", externalschedlibname,
9 sys_dllextent);
10 sys_bashfilename(filename, filename);
11 #ifdef MSW
12 @@ -255,7 +255,7 @@
13 HINSTANCE ntdll = LoadLibrary(filename);
14 if (!ntdll)
16 - post("%s: couldn't load external scheduler lib ", filename);
17 + fprintf(stderr, "%s: couldn't load external scheduler lib ", filename);
18 return (0);
20 externalmainfunc =
21 @@ -266,7 +266,7 @@
22 void *dlobj = dlopen(filename, RTLD_NOW | RTLD_GLOBAL);
23 if (!dlobj)
25 - post("%s: %s", filename, dlerror());
26 + fprintf(stderr, "%s: %s\n", filename, dlerror());
27 return (0);
29 externalmainfunc = (t_externalschedlibmain)dlsym(dlobj,