From 39fcd5139996c6d07d659c5b771f0e84711f9c46 Mon Sep 17 00:00:00 2001 From: Bastiaan Jacques Date: Mon, 26 Mar 2012 11:08:34 +0000 Subject: Allow compilation with GCC-4.7. Fewer system headers include since 4.7, according to the release changes list: "Avoid polluting the global namespace by inclusion of ." So we must include it ourselves. This is based on an upstream patch by Hicham Haouari: http://pkgs.fedoraproject.org/gitweb/?p=gnash.git;a=blob;f=gnash-0.8.10-add-unistd-header.patch;h=d2995180546f27a8f30162b2d4a0f8e15de9a9bb;hb=HEAD --- diff --git a/plugin/klash4/Makefile.am b/plugin/klash4/Makefile.am index 36a2196..fc43451 100644 --- a/plugin/klash4/Makefile.am +++ b/plugin/klash4/Makefile.am @@ -23,7 +23,9 @@ AM_CPPFLAGS = \ $(KDE4_CFLAGS) \ $(QT4_CFLAGS) \ $(X11_CFLAGS) \ - -DGNASHBINDIR=\"${bindir}\" + -I$(top_srcdir)/libbase \ + -DGNASHBINDIR=\"${bindir}\" \ + $(NULL) plugindir = $(KDE4_PLUGINDIR) kde_servicesdir = $(KDE4_SERVICESDIR) diff --git a/plugin/klash4/klash_part.cpp b/plugin/klash4/klash_part.cpp index b027b4b..3ba0873 100644 --- a/plugin/klash4/klash_part.cpp +++ b/plugin/klash4/klash_part.cpp @@ -43,6 +43,7 @@ #include "klash_part.h" #include +#include "GnashSystemIOHeaders.h" //----------------------------------------------------------------------------- -- cgit v0.9.0.2