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/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;
namespace {

View file

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

View file

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

View file

@ -23,7 +23,16 @@
#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>
bool WindowState::useBorder() const {

View file

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