~ubuntu-branches/ubuntu/trusty/miro/trusty

« back to all changes in this revision

Viewing changes to portable/libtorrent/include/libtorrent/asio/detail/epoll_reactor_fwd.hpp

  • Committer: Daniel Hahler
  • Date: 2010-04-13 18:51:35 UTC
  • mfrom: (1.2.10 upstream)
  • Revision ID: ubuntu-launchpad@thequod.de-20100413185135-xi24v1diqg8w406x
Merging shared upstream rev into target branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//
2
 
// epoll_reactor_fwd.hpp
3
 
// ~~~~~~~~~~~~~~~~~~~~~
4
 
//
5
 
// Copyright (c) 2003-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6
 
//
7
 
// Distributed under the Boost Software License, Version 1.0. (See accompanying
8
 
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9
 
//
10
 
 
11
 
#ifndef ASIO_DETAIL_EPOLL_REACTOR_FWD_HPP
12
 
#define ASIO_DETAIL_EPOLL_REACTOR_FWD_HPP
13
 
 
14
 
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
15
 
# pragma once
16
 
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17
 
 
18
 
#include "asio/detail/push_options.hpp"
19
 
 
20
 
#if !defined(ASIO_DISABLE_EPOLL)
21
 
#if defined(__linux__) // This service is only supported on Linux.
22
 
 
23
 
#include "asio/detail/push_options.hpp"
24
 
#include <linux/version.h>
25
 
#include "asio/detail/pop_options.hpp"
26
 
 
27
 
#if LINUX_VERSION_CODE >= KERNEL_VERSION (2,5,45) // Only kernels >= 2.5.45.
28
 
 
29
 
// Define this to indicate that epoll is supported on the target platform.
30
 
#define ASIO_HAS_EPOLL 1
31
 
 
32
 
namespace asio {
33
 
namespace detail {
34
 
 
35
 
template <bool Own_Thread>
36
 
class epoll_reactor;
37
 
 
38
 
} // namespace detail
39
 
} // namespace asio
40
 
 
41
 
#endif // LINUX_VERSION_CODE >= KERNEL_VERSION (2,5,45)
42
 
#endif // defined(__linux__)
43
 
#endif // !defined(ASIO_DISABLE_EPOLL)
44
 
 
45
 
#include "asio/detail/pop_options.hpp"
46
 
 
47
 
#endif // ASIO_DETAIL_EPOLL_REACTOR_FWD_HPP