1// 2// detail/signal_blocker.hpp 3// ~~~~~~~~~~~~~~~~~~~~~~~~~ 4// 5// Copyright (c) 2003-2015 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_SIGNAL_BLOCKER_HPP 12#define ASIO_DETAIL_SIGNAL_BLOCKER_HPP 13 14 15#include "asio/detail/config.hpp" 16 17#if defined(ASIO_HAS_PTHREADS) 18# include "asio/detail/posix_signal_blocker.hpp" 19#else 20# error Only Windows and POSIX are supported! 21#endif 22 23namespace asio { 24namespace detail { 25 26#if defined(ASIO_HAS_PTHREADS) 27typedef posix_signal_blocker signal_blocker; 28#endif 29 30} // namespace detail 31} // namespace asio 32 33#endif // ASIO_DETAIL_SIGNAL_BLOCKER_HPP 34