Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] poisoned vdr plugins
After poisoning vdr with the patch below, I went through all the plugins
and made them compile using the thread safe alternatives.
--- vdr-1.3.17-mod-eepg-orig/config.h 2004-11-24 07:51:23.000000000 -0800
+++ vdr-1.3.17-mod-eepg/config.h 2004-12-04 14:57:51.000000000 -0800
@@ -16,6 +16,9 @@
#include <string.h>
#include <time.h>
#include <unistd.h>
+#pragma GCC poison alctime ctime gmtime localtime
+#pragma GCC poison getgrgid getgrnam getpwnam getpwuid
+#pragma GCC poison rand readdir strtok
#include "device.h"
#include "i18n.h"
#include "tools.h"
Some of the plugins, such as streamdev, only required a change in the
order of #includes (putting the vdr #includes after the system) to fix
the compilation. But, unfortunately, streamdev still crashes with
buffer overflows if I include the recent changes to thread.[ch] found in
vdr-1.3.17 (vanilla thread.c in vdr-1.3.17 also does not work).
Streamdev still only appears to work if I revert vdr-1.3.17 back to the
previous threading model of 1.3.16. It appears there is much more to
investigate.
Regards,
C.Y.M.
Home |
Main Index |
Thread Index