PageRenderTime 23ms CodeModel.GetById 15ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/src/contrib/boost/asio/detail/epoll_reactor_fwd.hpp

http://pythonocc.googlecode.com/
C++ Header | 48 lines | 25 code | 13 blank | 10 comment | 1 complexity | 6fc08bd99a2cd907a0e82003db17db4b MD5 | raw file
 1//
 2// epoll_reactor_fwd.hpp
 3// ~~~~~~~~~~~~~~~~~~~~~
 4//
 5// Copyright (c) 2003-2010 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 BOOST_ASIO_DETAIL_EPOLL_REACTOR_FWD_HPP
12#define BOOST_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 <boost/asio/detail/push_options.hpp>
19
20#if !defined(BOOST_ASIO_DISABLE_EPOLL)
21#if defined(__linux__) // This service is only supported on Linux.
22
23#include <boost/asio/detail/push_options.hpp>
24#include <linux/version.h>
25#include <boost/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 BOOST_ASIO_HAS_EPOLL 1
31
32namespace boost {
33namespace asio {
34namespace detail {
35
36class epoll_reactor;
37
38} // namespace detail
39} // namespace asio
40} // namespace boost
41
42#endif // LINUX_VERSION_CODE >= KERNEL_VERSION (2,5,45)
43#endif // defined(__linux__)
44#endif // !defined(BOOST_ASIO_DISABLE_EPOLL)
45
46#include <boost/asio/detail/pop_options.hpp>
47
48#endif // BOOST_ASIO_DETAIL_EPOLL_REACTOR_FWD_HPP