2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Fixed compile error on debian etch.
	The libc6 shipped with debian etch doesn't define ULLONG_MAX 
properly
	even if _GNU_SOURCE is defined. So define ULLONG_MAX in case 
when
	it is undefined.
	* src/Util.cc (ULLONG_MAX)
This commit is contained in:
Tatsuhiro Tsujikawa 2008-06-01 08:23:32 +00:00
parent 54ee6c4627
commit 1f084fc5dc
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed compile error on debian etch.
The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
it is undefined.
* src/Util.cc (ULLONG_MAX)
2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Added epoll support. Use epoll if it is available. If not, use select.

View File

@ -61,6 +61,11 @@
# endif // HAVE_WINSOCK_H
#endif // HAVE_SLEEP
// For libc6 which doesn't define ULLONG_MAX properly because of broken limits.h
#ifndef ULLONG_MAX
# define ULLONG_MAX 18446744073709551615ULL
#endif // ULLONG_MAX
namespace aria2 {
const std::string Util::DEFAULT_TRIM_CHARSET("\r\n\t ");