Fix compilation with gcc-4.9

Looks like one needs to include <functional> if one uses std::function.

Compilation verified with:
* gcc-4.8
* gcc-4.9
* clang-3.2
icc-effect-5.14.5
Martin Gräßlin 2014-04-29 07:49:54 +02:00
parent 15aa971aab
commit b18c672e36
2 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <kwineffects_export.h>
#include <QStringList>
#include <QUrl>
#include <functional>
namespace KWin
{

View File

@ -40,6 +40,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <fixx11h.h>
// system
#include <assert.h>
// c++
#include <functional>
namespace KWin
{