compile fix: missing headers (sun compiler complained about)

This commit is contained in:
Mathias Gumz 2009-10-01 08:41:04 +02:00
parent 6c0739e889
commit 078438e993
5 changed files with 37 additions and 1 deletions

View file

@ -36,6 +36,17 @@
#include "FbTk/stringstream.hh" #include "FbTk/stringstream.hh"
#include "FbTk/StringUtil.hh" #include "FbTk/StringUtil.hh"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif // HAVE_CONFIG_H
#ifdef HAVE_CSTDLIB
#include <cstdlib>
#else
#include <stdlib.h>
#endif
using FbTk::Command; using FbTk::Command;
namespace { namespace {

View file

@ -39,15 +39,24 @@
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include <iostream> #include <iostream>
#include <algorithm> #include <algorithm>
#include <new> #include <new>
#ifdef HAVE_CSTRING #ifdef HAVE_CSTRING
#include <cstring> #include <cstring>
#else #else
#include <string.h> #include <string.h>
#endif #endif
#ifdef HAVE_CSTDLIB
#include <cstdlib>
#else
#include <stdlib.h>
#endif
using std::cerr; using std::cerr;
using std::endl; using std::endl;
using std::vector; using std::vector;

View file

@ -36,6 +36,12 @@
#include <string.h> #include <string.h>
#endif #endif
#ifdef HAVE_CSTDLIB
#include <cstdlib>
#else
#include <stdlib.h>
#endif
#include <X11/Xutil.h> #include <X11/Xutil.h>
#ifdef SHAPE #ifdef SHAPE

View file

@ -23,7 +23,16 @@
#include "FbTk/StringUtil.hh" #include "FbTk/StringUtil.hh"
#include <cstdlib> #ifdef HAVE_CONFIG_H
#include "config.h"
#endif // HAVE_CONFIG_H
#ifdef HAVE_CSTDLIB
#include <cstdlib>
#else
#include <stdlib.h>
#endif
#include <errno.h> #include <errno.h>
bool WindowState::useBorder() const { bool WindowState::useBorder() const {

View file

@ -24,6 +24,7 @@
#include "Layer.hh" #include "Layer.hh"
#include <X11/Xlib.h>
#include <X11/Xutil.h> #include <X11/Xutil.h>
#include <string> #include <string>