FreeBSD Bugzilla – Attachment 215038 Details for
Bug 246854
net/pichi: Fix building failure on FreeBSD-13.0-CURRENT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
net/pichi patch
pichi-current.patch (text/plain), 3.35 KB, created by
Pichi
on 2020-05-30 02:51:47 UTC
(
hide
)
Description:
net/pichi patch
Filename:
MIME Type:
Creator:
Pichi
Created:
2020-05-30 02:51:47 UTC
Size:
3.35 KB
patch
obsolete
>diff -ruN pichi/files/patch-include_pichi_config.hpp.in pichi/files/patch-include_pichi_config.hpp.in >--- pichi/files/patch-include_pichi_config.hpp.in 1970-01-01 00:00:00.000000000 +0000 >+++ pichi/files/patch-include_pichi_config.hpp.in 1970-01-01 00:00:00.000000000 +0000 >@@ -0,0 +1,18 @@ >+--- include/pichi/config.hpp.in 1970-01-01 00:00:00.000000000 +0000 >++++ include/pichi/config.hpp.in >+@@ -42,6 +42,15 @@ >+ #pragma warning(pop) >+ #endif // DISABLE_C4702_FOR_BEAST_FIELDS && _MSC_VER >+ >++#ifdef __clang__ >++#if !__has_feature(c_atomic) >++#pragma clang diagnostic push >++#pragma clang diagnostic ignored "-Wc11-extensions" >++#include <boost/smart_ptr/detail/sp_counted_base_clang.hpp> >++#pragma clang diagnostic pop >++#endif // !__has_feature(c_atomic) >++#endif // __clang__ >++ >+ #cmakedefine CMAKE_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@" >+ >+ #ifdef CMAKE_INSTALL_PREFIX >diff -ruN pichi/files/patch-server_main.cpp pichi/files/patch-server_main.cpp >--- pichi/files/patch-server_main.cpp 1970-01-01 00:00:00.000000000 +0000 >+++ pichi/files/patch-server_main.cpp 1970-01-01 00:00:00.000000000 +0000 >@@ -0,0 +1,15 @@ >+--- server/main.cpp 1970-01-01 00:00:00.000000000 +0000 >++++ server/main.cpp >+@@ -1,10 +1,11 @@ >++#include <pichi/config.hpp> >++// Include config.hpp first >+ #include <boost/filesystem/operations.hpp> >+ #include <boost/filesystem/path.hpp> >+ #include <boost/program_options.hpp> >+ #include <fstream> >+ #include <iostream> >+ #include <memory> >+-#include <pichi/config.hpp> >+ #include <stdio.h> >+ #ifdef HAS_UNISTD_H >+ #include <errno.h> >diff -ruN pichi/files/patch-test_endpoint.cpp pichi/files/patch-test_endpoint.cpp >--- pichi/files/patch-test_endpoint.cpp 1970-01-01 00:00:00.000000000 +0000 >+++ pichi/files/patch-test_endpoint.cpp 1970-01-01 00:00:00.000000000 +0000 >@@ -0,0 +1,12 @@ >+--- test/endpoint.cpp 1970-01-01 00:00:00.000000000 +0000 >++++ test/endpoint.cpp >+@@ -132,7 +132,8 @@ >+ #ifndef HAS_CLASS_TEMPLATE_ARGUMENT_DEDUCTION >+ <uint8_t, 13> >+ #endif // HAS_CLASS_TEMPLATE_ARGUMENT_DEDUCTION >+- {0x03, 0x09, 'l', 'o', 'c', 'a', 'l', 'h', 'o', 's', 't', 0x01, 0xbb}; >++ {0x03_u8, 0x09_u8, 0x6c_u8, 0x6f_u8, 0x63_u8, 0x61_u8, 0x6c_u8, >++ 0x68_u8, 0x6f_u8, 0x73_u8, 0x74_u8, 0x01_u8, 0xbb_u8}; >+ >+ auto fact = array<uint8_t, 13>{}; >+ auto len = serializeEndpoint(makeEndpoint(host, port), fact); >diff -ruN pichi/files/patch-test_method.cpp pichi/files/patch-test_method.cpp >--- pichi/files/patch-test_method.cpp 1970-01-01 00:00:00.000000000 +0000 >+++ pichi/files/patch-test_method.cpp 1970-01-01 00:00:00.000000000 +0000 >@@ -0,0 +1,9 @@ >+--- test/method.cpp 1970-01-01 00:00:00.000000000 +0000 >++++ test/method.cpp >+@@ -1,5 +1,6 @@ >+ #define BOOST_TEST_MODULE pichi method test >+ >++#include "utils.hpp" >+ #include <boost/test/unit_test.hpp> >+ #include <pichi/common.hpp> >+ #include <pichi/crypto/method.hpp> >diff -ruN pichi/files/patch-test_utils.hpp pichi/files/patch-test_utils.hpp >--- pichi/files/patch-test_utils.hpp 1970-01-01 00:00:00.000000000 +0000 >+++ pichi/files/patch-test_utils.hpp 1970-01-01 00:00:00.000000000 +0000 >@@ -0,0 +1,11 @@ >+--- test/utils.hpp 1970-01-01 00:00:00.000000000 +0000 >++++ test/utils.hpp >+@@ -1,6 +1,8 @@ >+ #ifndef PICHI_TEST_UTILS_HPP >+ #define PICHI_TEST_UTILS_HPP >+ >++#include <pichi/config.hpp> >++// Include config.hpp first >+ #include <boost/asio/error.hpp> >+ #include <boost/beast/http/error.hpp> >+ #include <pichi/api/vos.hpp>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
pichi
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 246854
:
215038
|
215952