some fixes for solaris
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
@license LGPL, see file <a href="license.html">COPYING</a>
|
||||
|
||||
$Log$
|
||||
Revision 1.5 2005/03/02 22:03:08 marc
|
||||
some fixes for solaris
|
||||
|
||||
Revision 1.4 2005/02/28 07:17:24 marc
|
||||
Dir is now usable and compilable, also added fixes for Solaris
|
||||
|
||||
@@ -253,13 +256,12 @@ namespace mrw {
|
||||
#ifdef _DIRENT_HAVE_D_TYPE
|
||||
return FileType(_dirent.d.d_type);
|
||||
#else
|
||||
return UNKNOWN:
|
||||
return UNKNOWN;
|
||||
#endif
|
||||
}
|
||||
|
||||
/// Get the type of the actual file as string.
|
||||
const std::string& typestr() const throw() {
|
||||
#ifdef _DIRENT_HAVE_D_TYPE
|
||||
static const std::string UNKNOWN_("UNKNOWN");
|
||||
static const std::string REGULAR_("REGULAR");
|
||||
static const std::string DIR_("DIR");
|
||||
@@ -267,6 +269,7 @@ namespace mrw {
|
||||
static const std::string SOCKET_("SOCKET");
|
||||
static const std::string CHAR_("CHAR");
|
||||
static const std::string BLOCK_("BLOCK");
|
||||
#ifdef _DIRENT_HAVE_D_TYPE
|
||||
switch (_dirent.d.d_type) {
|
||||
case UNKNOWN: return UNKNOWN_;
|
||||
case REGULAR: return REGULAR_;
|
||||
@@ -278,7 +281,7 @@ namespace mrw {
|
||||
}
|
||||
abort(); // this line is never reached
|
||||
#else
|
||||
return "UNKNOWN";
|
||||
return UNKNOWN_;
|
||||
#endif
|
||||
}
|
||||
//.......................................................... variables
|
||||
|
Reference in New Issue
Block a user