From d300c62ba090a3bfac65a2c8dcc7add1b4cf45b4 Mon Sep 17 00:00:00 2001 From: Bernhard Walle Date: Tue, 25 Mar 2008 20:31:47 +0100 Subject: Fix build with g++ 4.3 This change fixes the build for g++ 4.3. Build verified on openSUSE Factory. Only missing includes and using directives are added. --- src/FocusableList.cc | 6 ++++++ src/FocusableList.hh | 1 + src/Layer.hh | 6 ++++++ src/Xutil.cc | 7 +++++++ util/fluxbox-update_configs.cc | 3 +++ 5 files changed, 23 insertions(+) diff --git a/src/FocusableList.cc b/src/FocusableList.cc index 258a43b..70f415e 100644 --- a/src/FocusableList.cc +++ b/src/FocusableList.cc @@ -31,6 +31,12 @@ #include +#ifdef HAVE_CSTRING + #include +#else + #include +#endif + using std::string; using std::vector; diff --git a/src/FocusableList.hh b/src/FocusableList.hh index 91eb6a4..d46fe48 100644 --- a/src/FocusableList.hh +++ b/src/FocusableList.hh @@ -30,6 +30,7 @@ #include #include +#include class BScreen; class Focusable; diff --git a/src/Layer.hh b/src/Layer.hh index bbda950..58fb5b6 100644 --- a/src/Layer.hh +++ b/src/Layer.hh @@ -25,6 +25,12 @@ #include #include +#ifdef HAVE_CSTRING + #include +#else + #include +#endif + using std::string; /** diff --git a/src/Xutil.cc b/src/Xutil.cc index 44fceaf..a1744c4 100644 --- a/src/Xutil.cc +++ b/src/Xutil.cc @@ -29,7 +29,14 @@ #include #include +#ifdef HAVE_CSTRING + #include +#else + #include +#endif + using std::string; +using std::strlen; #ifdef DEBUG using std::cerr; diff --git a/util/fluxbox-update_configs.cc b/util/fluxbox-update_configs.cc index 75be474..eb080de 100644 --- a/util/fluxbox-update_configs.cc +++ b/util/fluxbox-update_configs.cc @@ -48,6 +48,7 @@ #include #include #include +#include #include using std::cout; @@ -59,6 +60,8 @@ using std::ofstream; using std::set; using std::map; using std::list; +using std::exit; +using std::getenv; string read_file(string filename); void write_file(string filename, string &contents); -- cgit v0.11.2