Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Thread-safe poison and the standard C++ library
In <200502010655.53975.taferner@kde.org>, Stefan Taferner wrote:
> On Monday 31 January 2005 23:51, Tony Houghton wrote:
> > I have to disable the thread-safe poison pragmas when compiling the
> > softdevice plugin because there are references to several unsafe
> > functions. The strange things is, these references are in the standard
> > C++ library, included via DFB++. Does the rest of VDR generally avoid
> > the SCL, or at least those parts of it?
>
> It works if you poison after including the standard header files.
> Most of the time shuffling the include order helps.
Duh, how many times have I read about that here? :-/ Thanks for your
patience.
softdevice patch attached (for latest CVS, probably works with older
versions).
--
TH * http://www.realh.co.uk
--- softdevice.c.orig 2005-02-03 00:10:14.000000000 +0000
+++ softdevice.c 2005-02-03 00:17:08.000000000 +0000
@@ -8,6 +8,10 @@
#include <getopt.h>
#include <stdlib.h>
+
+// Pre-include iostream to avoid being caught by poison
+#include <iostream>
+
#include <vdr/interface.h>
#include <vdr/plugin.h>
#include <vdr/player.h>
--- video-dfb.c.orig 2005-02-03 00:17:50.000000000 +0000
+++ video-dfb.c 2005-02-03 00:18:24.000000000 +0000
@@ -9,6 +9,10 @@
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <fcntl.h>
+
+// Pre-include iostream to avoid being caught by poison
+#include <iostream>
+
#include <vdr/plugin.h>
#include "video-dfb.h"
#include "utils.h"
Home |
Main Index |
Thread Index