Changeset 2190


Ignore:
Timestamp:
29/05/2008 22:51:38 (4 years ago)
Author:
martin
Message:

Fix strerror include. Needed for gcc 4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/Logging.h

    r2175 r2190  
    1111#define LOGGING__H 
    1212 
     13#include <cstring> 
    1314#include <iomanip> 
    1415#include <sstream> 
     
    5051 
    5152#define BOX_LOG_SYS_WARNING(stuff) \ 
    52         BOX_WARNING(stuff << ": " << strerror(errno) << " (" << errno << ")") 
     53        BOX_WARNING(stuff << ": " << std::strerror(errno) << " (" << errno << ")") 
    5354#define BOX_LOG_SYS_ERROR(stuff) \ 
    54         BOX_ERROR(stuff << ": " << strerror(errno) << " (" << errno << ")") 
     55        BOX_ERROR(stuff << ": " << std::strerror(errno) << " (" << errno << ")") 
    5556#define BOX_LOG_SYS_FATAL(stuff) \ 
    56         BOX_FATAL(stuff << ": " << strerror(errno) << " (" << errno << ")") 
     57        BOX_FATAL(stuff << ": " << std::strerror(errno) << " (" << errno << ")") 
    5758 
    5859#ifdef WIN32 
Note: See TracChangeset for help on using the changeset viewer.