forked from GobySoft/goby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed building on RHEL/CentOS 8. There were three main issues with compiling on RHEL/CentOS 8: 1. boost::asio::io_service was deprecated in 1.66. The "common/io_service.h" header creates a typedefs io_context to io_service if the boost version is greater than or equal to 1.66. 2. boost::asio::basic_stream_socket native() method deprecated in 1.47. The version of boost is checked when the 'native()' is used and switches to 'native_handle()' if the version is greater than 1.47. 3. Using proj_api.h is deprecated. Added a define to "src/CMakeLists.txt" for ACCEPT_USE_OF_DEPRECATED_PROJ_API_H. Fixes GobySoft#51.
- Loading branch information
Showing
16 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Copyright 2009-2018 Toby Schneider (http://gobysoft.org/index.wt/people/toby) | ||
// GobySoft, LLC (2013-) | ||
// Massachusetts Institute of Technology (2007-2014) | ||
// Community contributors (see AUTHORS file) | ||
// | ||
// | ||
// This file is part of the Goby Underwater Autonomy Project Libraries | ||
// ("The Goby Libraries"). | ||
// | ||
// The Goby Libraries are free software: you can redistribute them and/or modify | ||
// them under the terms of the GNU Lesser General Public License as published by | ||
// the Free Software Foundation, either version 2.1 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// The Goby Libraries are distributed in the hope that they will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Lesser General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Lesser General Public License | ||
// along with Goby. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
|
||
#ifndef IO_SERVICE20200522H | ||
#define IO_SERVICE20200522H | ||
|
||
#include <boost/version.hpp> | ||
|
||
// boost::asio::io_service was deprected in 1.66 | ||
#if BOOST_VERSION >= 106600 | ||
|
||
#include <boost/asio.hpp> | ||
|
||
namespace boost | ||
{ | ||
namespace asio | ||
{ | ||
typedef io_context io_service; | ||
} // namespace asio | ||
} // namespace boost | ||
|
||
#endif | ||
|
||
#endif | ||
|