From 078438e9933720f2e1e0a4bf060eff1fe94a703f Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Thu, 1 Oct 2009 08:41:04 +0200 Subject: compile fix: missing headers (sun compiler complained about) --- src/CurrentWindowCmd.cc | 11 +++++++++++ src/Ewmh.cc | 9 +++++++++ src/FbTk/Shape.cc | 6 ++++++ src/WindowState.cc | 11 ++++++++++- src/WindowState.hh | 1 + 5 files changed, 37 insertions(+), 1 deletion(-) diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc index 2575a39..b73de01 100644 --- a/src/CurrentWindowCmd.cc +++ b/src/CurrentWindowCmd.cc @@ -36,6 +36,17 @@ #include "FbTk/stringstream.hh" #include "FbTk/StringUtil.hh" +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif // HAVE_CONFIG_H + +#ifdef HAVE_CSTDLIB +#include +#else +#include +#endif + + using FbTk::Command; namespace { diff --git a/src/Ewmh.cc b/src/Ewmh.cc index 4062595..fb1b832 100644 --- a/src/Ewmh.cc +++ b/src/Ewmh.cc @@ -39,15 +39,24 @@ #include #include + #include #include #include + #ifdef HAVE_CSTRING #include #else #include #endif +#ifdef HAVE_CSTDLIB + #include +#else + #include +#endif + + using std::cerr; using std::endl; using std::vector; diff --git a/src/FbTk/Shape.cc b/src/FbTk/Shape.cc index e7e2563..c952403 100644 --- a/src/FbTk/Shape.cc +++ b/src/FbTk/Shape.cc @@ -36,6 +36,12 @@ #include #endif +#ifdef HAVE_CSTDLIB + #include +#else + #include +#endif + #include #ifdef SHAPE diff --git a/src/WindowState.cc b/src/WindowState.cc index 1b8647a..d062907 100644 --- a/src/WindowState.cc +++ b/src/WindowState.cc @@ -23,7 +23,16 @@ #include "FbTk/StringUtil.hh" -#include +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif // HAVE_CONFIG_H + +#ifdef HAVE_CSTDLIB + #include +#else + #include +#endif + #include bool WindowState::useBorder() const { diff --git a/src/WindowState.hh b/src/WindowState.hh index 883443a..6409d13 100644 --- a/src/WindowState.hh +++ b/src/WindowState.hh @@ -24,6 +24,7 @@ #include "Layer.hh" +#include #include #include -- cgit v0.11.2